﻿var width="width=705px";
var randomStr = Math.floor(Math.random()* 1000000);
var PowerProductsDirectory = "/PowerProducts/";
var flashFilesServerPath = "http://wms.tkcarsites.com/PowerProducts/"; // read it from xml file later
var printPagesPath = "http://wms.tkcarsites.com/PowerProducts/";

function UpdateBanners(BannerID,divBanner,frameBanner)
{
    //width="width=450px";
    //var str = width +",height=275px,scrollbars=1,resizable=0";
    var url = PowerProductsDirectory + "ManageBanner.aspx?BannerID=" + BannerID;
    document.getElementById(frameBanner).src = url;
    document.getElementById(divBanner).style.display = "";
}

function UploadBannerImages(BannerID,SiteID,Height,Width,divBannerImages,frameBannerImages)
{
    //width="width=600px";
    //var str = width +",height=450px,scrollbars=1,resizable=0";
    var url = PowerProductsDirectory + "UploadBannerImages.aspx?SiteID=" + SiteID + "&BannerID=" + BannerID + "&Height=" + Height + "&Width=" + Width;
    document.getElementById(frameBannerImages).src = url;
    document.getElementById(divBannerImages).style.display = "";
    //window.open(url,"UploadBannerImages",str );
}

function UpdateScrollingButtons(ScrollingButtonID,divBanner,frameBanner)
{
    //width="width=450px";
    //var str = width +",height=275px,scrollbars=1,resizable=0";
    var url = PowerProductsDirectory + "ManageScrollingButtons.aspx?ScrollingButtonID=" + ScrollingButtonID;
    document.getElementById(frameBanner).src = url;
    document.getElementById(divBanner).style.display = "";
}

function UploadScrollingButtonImages(ScrollingButtonID,SiteID,Height,Width,divBannerImages,frameBannerImages)
{
    //width="width=600px";
    //var str = width +",height=450px,scrollbars=1,resizable=0";
    var url = PowerProductsDirectory + "UploadScrollingButtonImages.aspx?SiteID=" + SiteID + "&ScrollingButtonID=" + ScrollingButtonID + "&Height=" + Height + "&Width=" + Width;
    document.getElementById(frameBannerImages).src = url;
    document.getElementById(divBannerImages).style.display = "";
    //window.open(url,"UploadBannerImages",str );
}

function AddSpecials(FeatureSpecialID, siteID,divFeatureSpecials,frameFeatureSpecials)
{
    //width="width=900px";
    //var str = width +",height=650px,scrollbars=1,resizable=0";
    var url = PowerProductsDirectory + "FeatureSpecial.aspx?SiteID=" + siteID + "&FeatureSpecialID=" + FeatureSpecialID;
    //window.open(url,"AddSpecials",str );  
    document.getElementById(frameFeatureSpecials).src = url;
    document.getElementById(divFeatureSpecials).style.display = "";
}

function UpdateScrollingMarquis(ScrollingMarquisID,divScrollingMarquis,frameScrollingMarquis)
{
    //width="width=600px";
    //var str = width +",height=400px,scrollbars=1,resizable=0";
    var url = PowerProductsDirectory + "ScrollingMarquis.aspx?ScrollingMarquisID=" + ScrollingMarquisID;
    document.getElementById(frameScrollingMarquis).src = url;
    document.getElementById(divScrollingMarquis).style.display = "";
    
    //window.open(url,"ScollingMarquis",str );
}

function UpdatePowerTextEditor(PowerTextEditorID,divPowerTextEditor,framePowerTextEditor)           
{
    //width="width=700px";
    //var str = width +",height=600px,scrollbars=1,resizable=0";
    var url = PowerProductsDirectory + "PowerTextEditor.aspx?PowerTextEditorID=" + PowerTextEditorID;
    document.getElementById(framePowerTextEditor).src = url;
    document.getElementById(divPowerTextEditor).style.display = "";
    //window.open(url,"PowerTextEditor",str );
}

function ConfigureMakes(RecommendedMaintenanceID,divConfigureMakes,frameConfigureMakes)
{
    //width="width=550px";
    //var str = width +",height=300px,scrollbars=1,resizable=0";
    var url = PowerProductsDirectory + "RecommendedMaintenanceMakes.aspx?RecommendedMaintenanceID=" + RecommendedMaintenanceID;
    //window.open(url,"RecommendedMaintenance",str );
    document.getElementById(frameConfigureMakes).src = url;
    document.getElementById(divConfigureMakes).style.display = "";
}



function ConfigurePanels(RecommendedMaintenanceMakesID)
{
    width="width=550px";
    var str = width +",height=500px,scrollbars=1,resizable=0";
    var url = PowerProductsDirectory + "RecommendedMaintenancePanels.aspx?RecommendedMaintenanceMakesID=" + RecommendedMaintenanceMakesID;
    window.open(url,"RecommendedMaintenancePanels",str );
    
}


function LoadCropImage(Width,Height)
{
    var WindowWidth = 800;//parseInt(Width) + 35;
    var WindowHeight = 600;//parseInt(Height) + 60;
    width="width=" + WindowWidth +"px";
    var str = width +",height=" + WindowHeight + "px,scrollbars=1,resizable=0";
    var url = "CropTool.aspx?Width=" + Width + "&Height=" + Height;
    window.open(url,"CropTool",str );
}



function colorChanged(sender) {
  sender.get_element().style.color = 
       "#" + sender.get_selectedColor();
}

function ConfirmDelete()
{
//    /*@cc_on @*/
//    /*@if (@_win32 && @_jscript_version>=5)
//    function window.confirm(str)
//    {
//        execScript('n = msgbox("'+str+'","4132")', "vbscript"); 
//        return(n == 6); 
//    }
//    @end @*/
    return confirm("Press Ok to delete the selected row.");
}

function ShowDiv(val,HideMessage) 
{
//    var x, y;
//    if (document == null)
//    {
//        x = (window.innerWidth / 2) - (window.innerHeight / 5);
//        y = x;
//    }
//    else
//    {
//        x = (document.body.clientWidth / 2) - (document.body.clientHeight / 5);
//        y = x;
//    }
//    overlay(this, val, '', x, y);


    var msg = document.getElementById(HideMessage);
    if(msg != null)
    {
        msg.style.display = "none";
    }


    overlay(this, val, '', 50, 50);
}

function HideDiv(val)
{
    document.getElementById(val).style.display = "none";
}

		
function getposOffset(overlay, offsettype)
{
    var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
    var parentEl=overlay.offsetParent;
    while (parentEl!=null)
    {
        totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
        parentEl=parentEl.offsetParent;
    }
    return totaloffset;
}

function overlay(curobj, subobjstr, opt_position,xPos,yPos)
{
    if (document.getElementById)
    {
        var subobj=document.getElementById(subobjstr)
        subobj.style.display=(subobj.style.display!="block")? "block" : "none"
        var xpos=getposOffset(curobj, "left")+((typeof opt_position!="undefined" && opt_position.indexOf("right")!=-1)? -(subobj.offsetWidth-curobj.offsetWidth) : 0) 
        var ypos=getposOffset(curobj, "top")+((typeof opt_position!="undefined" && opt_position.indexOf("bottom")!=-1)? curobj.offsetHeight : 0)
        subobj.style.left=xPos+"px"
        subobj.style.top=yPos+"px"
        return false
    }
    else
        return true
}

function overlayclose(subobj)
{
    document.getElementById(subobj).style.display="none"
}


function OnCancelConfirmation()
{
    if(window.confirm('Are you sure you want to cancel it. Press Ok will crop & resize the image automatically for its best fit.'))
    {
        window.close();
    }
}

function Validate(txtHeight,txtWidth)
{
    Page_ClientValidate(); 
    if(Page_IsValid)
    {
        if((document.getElementById("hdnHeight") != null  && document.getElementById("hdnHeight").value != 0) || (document.getElementById("hdnWidth") != null && document.getElementById("hdnWidth").value != 0))
        {
            if (document.getElementById(txtHeight).value != document.getElementById("hdnHeight").value || document.getElementById(txtWidth).value != document.getElementById("hdnWidth").value)
            {
                alert('Warning! Your images dimensions have been modified. Please re-crop all of your images accordingly.');
            }
        }
        return true;
    }
    return false;
}

function DisplayProgressBar(imgID)
{
    Page_ClientValidate();
    if(Page_IsValid)
    {
        document.getElementById(imgID).style.display = "";
    }
}


function SetGradientColorField(gradientCheckBox, gradientColorTextField)
{
    if(gradientCheckBox.checked)
    {
        document.getElementById(gradientColorTextField).disabled = false;
    }
    else
    {
        document.getElementById(gradientColorTextField).disabled = true;
    }
}

function getParam( url, name )
{
                name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
                var regexS = "[\\?&]"+name+"=([^&#]*)";
                var regex = new RegExp( regexS );
                var results = regex.exec( url );
                if( results == null )
                                return "";
                else
                                return results[1];
}
    
function GetReferrerUrlParameters()
{

    var referrerUrl = document.referrer;
  
    var searchParameters = "";

    if(referrerUrl.toLowerCase().indexOf('search.yahoo.com',0) > 0)
    {
	    searchParameters = getParam(referrerUrl , 'p');
    }
    else if(referrerUrl.toLowerCase().indexOf('www.google.com',0) > 0)
    {
        searchParameters = getParam(referrerUrl , 'q');
    }

    return searchParameters;
}


function GetBannerImages(BannerID,FlashObjectWidth,FlashObjectHeight,IsRounded,PagingYaxis,divID)
{
    var flashFile;
    var browser=navigator.appName;
    flashFile = flashFilesServerPath + "BannerImages.swf";
    if(divID == null)
    {
	    divID = "flash_BannerImages";
    }	
    
    var variable = flashFilesServerPath + "BannerImagesFlashHandler.ashx?BannerID="+ BannerID +"," + PagingYaxis + "," + GetReferrerUrlParameters()+ "," + IsRounded;
    if ((browser == "Microsoft Internet Explorer"))
    {
    	document.getElementById(divID).innerHTML =  
    	"<object id='FlashID' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='"+ FlashObjectWidth +"' height='"+ FlashObjectHeight +"'>"
    	+"<param name='movie' value='" + flashFile +"?random=" + randomStr +"&BannerImagesSource=" + variable + "'/>"
    	+"<param name='quality' value='high' />"
    	+"<param name='wmode' value='transparent' />"
    	+"<param name='swfversion' value='6.0.65.0' />"
    	+"<param name='expressinstall' value='Scripts/expressInstall.swf' />"
    	+"<param name='allowScriptAccess' value='always'/>";
    }
    else
    {
	    document.getElementById(divID).innerHTML = 
	    "<object type='application/x-shockwave-flash' data='" + flashFile + "?random=" + randomStr +"&BannerImagesSource=" + variable + "' width='" + FlashObjectWidth + "' height='"+ FlashObjectHeight +"'>"
        +"<param name='quality' value='high' />"
        +"<param name='wmode' value='transparent' />"
        +"<param name='swfversion' value='6.0.65.0' />"
        +"<param name='expressinstall' value='Scripts/expressInstall.swf' />"
        +"<param name='allowScriptAccess' value='always'/>"
        +"<div>"
        +"<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>"
        +"<p><a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' width='112' height='33' /></a></p>"
        +"</div>"
        +"</object>";
    }
}



function GetScrollingButtonImages(ScrollingButtonID,FlashObjectWidth,FlashObjectHeight,divID)
{
    var flashFile;
    var browser=navigator.appName;
    flashFile = flashFilesServerPath + "ScrollingButtonImages.swf";
    var variable = flashFilesServerPath + "ScrollingButtonFlashHandler.ashx?ScrollingButtonID="+ ScrollingButtonID + "," + GetReferrerUrlParameters();
    
    if(divID == null)
    {
	    divID = "flash_ScrollingButtonImages";
    }	
    if ((browser == "Microsoft Internet Explorer"))
    {
        document.getElementById(divID).innerHTML =  
        "<object id='FlashID' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='"+ FlashObjectWidth +"' height='"+ FlashObjectHeight +"'>"
        +"<param name='movie' value='" + flashFile +"?random=" + randomStr +"&ScrollingButtonImagesSource=" + variable + "'/>"
        +"<param name='quality' value='high' /><param name='wmode' value='transparent' />"
        +"<param name='swfversion' value='6.0.65.0' />"
        +"<param name='expressinstall' value='Scripts/expressInstall.swf' />"
        +"<param name='allowScriptAccess' value='always'/>"
        +"</object>";
    }
    else
    {
         document.getElementById(divID).innerHTML =  
        "<object type='application/x-shockwave-flash' data='" + flashFile + "?random=" + randomStr +"&ScrollingButtonImagesSource=" + variable + "' width='" + FlashObjectWidth + "' height='"+ FlashObjectHeight +"'>"
        +"<param name='quality' value='high' />"
        +"<param name='wmode' value='transparent' />"
        +"<param name='swfversion' value='6.0.65.0' />"
        +"<param name='expressinstall' value='Scripts/expressInstall.swf' />"
        +"<param name='allowScriptAccess' value='always'/>"
        +"<div>"
        +"<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>"
        +"<p><a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' width='112' height='33' /></a></p>"
        +"</div>"
        +"</object>";
    }
}




function GetFeaturedSpecials(FeaturedSpecialID,FlashObjectWidth,FlashObjectHeight,divID)
{
    var variable = flashFilesServerPath + "FeaturedSpecialsFlashHandler.ashx?FeaturedSpecialID="+ FeaturedSpecialID+"," + printPagesPath + "PrintFeaturedSpecial.aspx";
    var browser=navigator.appName;
    if(divID == null)
    {
	    divID = "flash_FeaturedSpecials";
    }	
    if ((browser == "Microsoft Internet Explorer"))
    {
        document.getElementById(divID).innerHTML =  
        "<object id='FlashID' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='"+ FlashObjectWidth +"' height='"+ FlashObjectHeight +"'>"
        +"<param name='movie' value='" + flashFilesServerPath + "FeaturedSpecials.swf?random=" + randomStr +"&FeaturedSpecialsSource=" + variable + "'/>"
        +"<param name='quality' value='high' /><param name='wmode' value='transparent' />"
        +"<param name='swfversion' value='6.0.65.0' />"
        +"<param name='expressinstall' value='Scripts/expressInstall.swf' />"
        +"</object>";
    }
    else
    {
        document.getElementById(divID).innerHTML =
        "<object type='application/x-shockwave-flash' data='"+ flashFilesServerPath +"FeaturedSpecials.swf?random=" + randomStr +"&FeaturedSpecialsSource=" + variable + "' width='" + FlashObjectWidth + "' height='"+ FlashObjectHeight +"'>"
        +"<param name='quality' value='high' />"
        +"<param name='wmode' value='transparent' />"
        +"<param name='swfversion' value='6.0.65.0' />"
        +"<param name='expressinstall' value='Scripts/expressInstall.swf' />"
        +"<div>"
        +"<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>"
        +"<p><a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' width='112' height='33' /></a></p>"
        +"</div>"
        +"</object>";
    }
    
    
}

function GetRecommendedMaintenance(RecommendedMaintenanceID,FlashObjectWidth,FlashObjectHeight,divID)
{
    var variable = flashFilesServerPath + "RecommendedMaintenanceFlashHandler.ashx?RecommendedMaintenanceID="+ RecommendedMaintenanceID+","+ printPagesPath +"PrintRecommendedMaintenance.aspx";
    var browser=navigator.appName;
     if(divID == null)
    {
	    divID = "flash_RecommendedMaintenance";
    }	
     if ((browser == "Microsoft Internet Explorer"))
     {
        document.getElementById(divID).innerHTML =  
        "<object id='FlashID' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='"+ FlashObjectWidth +"' height='"+ FlashObjectHeight +"'>"
        +"<param name='movie' value='"+ flashFilesServerPath + "RecommendedMaintenance.swf?random=" + randomStr +"&RecommendedMaintenanceSource=" + variable + "'/>"
        +"<param name='quality' value='high' />"
        +"<param name='wmode' value='transparent' />"
        +"<param name='swfversion' value='6.0.65.0' />"
        +"<param name='expressinstall' value='Scripts/expressInstall.swf' />"
        +"</object>";
    }
    else
    {
        document.getElementById(divID).innerHTML =  
        "<object type='application/x-shockwave-flash' data='"+ flashFilesServerPath +"RecommendedMaintenance.swf?random=" + randomStr +"&RecommendedMaintenanceSource=" + variable + "' width='" + FlashObjectWidth + "' height='"+ FlashObjectHeight +"'>"
        +"<param name='quality' value='high' />"
        +"<param name='wmode' value='transparent' />"
        +"<param name='swfversion' value='6.0.65.0' />"
        +"<param name='expressinstall' value='Scripts/expressInstall.swf' />"
        +"<div>"
        +"<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>"
        +"<p><a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' width='112' height='33' /></a></p>"
        +"</div>"
        +"</object>";
    }
    
    
}

function GetScrollingMarquis(ScrollingMarquisID,FlashObjectWidth,FlashObjectHeight,divID)
{
    var variable = flashFilesServerPath + "ScrollingMarquisFlashHandler.ashx?ScrollingMarquisID="+ ScrollingMarquisID;
    var browser=navigator.appName;
    
    if(divID == null)
    {
	    divID = "flash_ScrollingMarquis";
    }	
     if ((browser == "Microsoft Internet Explorer"))
     {
        document.getElementById(divID).innerHTML =  
        "<object id='FlashID' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='"+ FlashObjectWidth +"' height='"+ FlashObjectHeight +"'>"
        +"<param name='movie' value='"+ flashFilesServerPath + "ScrollingMarquis.swf?random=" + randomStr +"&ScrollingMarquisSource=" + variable + "'/>"
        +"<param name='quality' value='high' />"
        +"<param name='wmode' value='transparent' />"
        +"<param name='swfversion' value='6.0.65.0' />"
        +"<param name='expressinstall' value='Scripts/expressInstall.swf' />"
        +"</object>";
     }
     else
     {
        document.getElementById(divID).innerHTML =  
        "<object type='application/x-shockwave-flash' data='"+ flashFilesServerPath +"ScrollingMarquis.swf?random=" + randomStr +"&ScrollingMarquisSource=" + variable + "' width='" + FlashObjectWidth + "' height='"+ FlashObjectHeight +"'>"
        +"<param name='quality' value='high' />"
        +"<param name='wmode' value='transparent' />"
        +"<param name='swfversion' value='6.0.65.0' />"
        +"<param name='expressinstall' value='Scripts/expressInstall.swf' />"
        +"<div>"
        +"<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>"
        +"<p><a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' width='112' height='33' /></a></p>"
        +"</div>"
        +"</object>";
     }
}

function GetTextEditor(TextEditorID,FlashObjectWidth,FlashObjectHeight,divID)
{
    var variable = flashFilesServerPath + "PowerTextEditorFlashHandler.ashx?PowerTextEditorID="+ TextEditorID;
    var browser=navigator.appName;
     if(divID == null)
    {
	    divID = "flash_TextEditor";
    }	
    
     if ((browser == "Microsoft Internet Explorer"))
     {
        document.getElementById(divID).innerHTML =  
        "<object id='FlashID' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='"+ FlashObjectWidth +"' height='"+ FlashObjectHeight +"'>"
        +"<param name='movie' value='"+ flashFilesServerPath + "TextEditor.swf?random=" + randomStr +"&TextEditorSource=" + variable + "'/>"
        +"<param name='quality' value='high' />"
        +"<param name='wmode' value='transparent' />"
        +"<param name='swfversion' value='6.0.65.0' />"
        +"<param name='expressinstall' value='Scripts/expressInstall.swf' />"
        +"<param name='scale' value='noscale'/>"
        +"<param name='salign' value='lt' />"
        +"</object>";
    }
    else
    {
        document.getElementById(divID).innerHTML =  
        "<object type='application/x-shockwave-flash' data='"+ flashFilesServerPath +"TextEditor.swf?random=" + randomStr +"&TextEditorSource=" + variable + "' width='" + FlashObjectWidth + "' height='"+ FlashObjectHeight +"'>"
        +"<param name='quality' value='high' />"
        +"<param name='wmode' value='transparent' />"
        +"<param name='swfversion' value='6.0.65.0' />"
        +"<param name='expressinstall' value='Scripts/expressInstall.swf' />"
        +"<param name='scale' value='noscale'/>"
        +"<param name='salign' value='lt' />"
        +"<div>"
        +"<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>"
        +"<p><a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' width='112' height='33' /></a></p>"
        +"</div>"
        +"</object>";
    }
}


function GetBannerAndScrollingModelList(BannerID,PagingYaxis,ScrollingModelListPosition,ScrollingModelListFile,FlashObjectWidth,FlashObjectHeight,divID)
{
    var flashFile = flashFilesServerPath + "BannerScrollingModelList.swf";
    var bannerImagesFlashFile = flashFilesServerPath + "BannerImages.swf";
    var bannerImagesFlashHanler = flashFilesServerPath + "BannerImagesFlashHandler.ashx?BannerID="+ BannerID +"," + PagingYaxis + "," + GetReferrerUrlParameters();
    var browser=navigator.appName;
    var variable = flashFilesServerPath + "BannerScrollingModelListFlashHandler.ashx?Params="+ bannerImagesFlashFile + ",,," + bannerImagesFlashHanler +",,,"+ ScrollingModelListPosition +",,," + ScrollingModelListFile;
    
     if(divID == null)
    {
	    divID = "flash_BannerScrollingModelList";
    }	
    
     if ((browser == "Microsoft Internet Explorer"))
     {
        document.getElementById(divID).innerHTML =  
        "<object id='FlashID' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' width='"+ FlashObjectWidth +"' height='"+ FlashObjectHeight +"'>"
        +"<param name='movie' value='" + flashFile +"?random=" + randomStr +"&BannerScrollingModelListSource=" + variable + "'/>"
        +"<param name='quality' value='high' />"
        +"<param name='wmode' value='transparent' />"
        +"<param name='swfversion' value='6.0.65.0' />"
        +"<param name='expressinstall' value='Scripts/expressInstall.swf' />"
        +"<param name='allowScriptAccess' value='always'/>"
        +"</object>";
    }
    else
    {
        document.getElementById(divID).innerHTML =  
        "<object type='application/x-shockwave-flash' data='" + flashFile + "?random=" + randomStr +"&BannerScrollingModelListSource=" + variable + "' width='" + FlashObjectWidth + "' height='"+ FlashObjectHeight +"'>"
        +"<param name='quality' value='high' />"
        +"<param name='wmode' value='transparent' />"
        +"<param name='swfversion' value='6.0.65.0' />"
        +"<param name='expressinstall' value='Scripts/expressInstall.swf' />"
        +"<param name='allowScriptAccess' value='always'/>"
        +"<div>"
        +"<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>"
        +"<p><a href='http://www.adobe.com/go/getflashplayer'><img src='http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' width='112' height='33' /></a></p>"
        +"</div>"
        +"</object>";
    }
    
}