
function openHomeFlash()
{
document.write ('');
}

function openRules()
{
	window.open('/rules.html','rules','scrollbars=yes,status=no,width=678,height=400')
}

function openPricingNote(sPage)
{
	window.open(sPage,'notes','scrollbars=no,status=no,width=678,height=400')
}

function openPricingNoteVending()
{
	window.open('/vending/PricingPop.aspx','vendingpricing','scrollbars=no,status=no,width=678,height=400')
}

function openPricingNoteCStore()
{
	window.open('/cstore/PricingPop.aspx','cstorepricing','scrollbars=no,status=no,width=678,height=400')
}

function openProfit() 
{
    window.open('/Profit.aspx', 'profit', 'scrollbars=no,status=no,width=500,height=400')
}

function PopupCenter(pageURL, title, w, h) {
    var left = (screen.width / 2) - (w / 2);
    var top = (screen.height / 2) - (h / 2);
    var targetWin = window.open(pageURL, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left);
} 

function openFullServiceSellingZones()
{
document.write ('<object data="floorplans_fs.swf" type="application/x-shockwave-flash" width="557" height="550">');
document.write ('<param name="movie" value="floorplans_fs.swf" />');
document.write ('<param name="menu" value="false" />');
document.write ('<param name="quality" value="high" />');
document.write ('<param name="bgcolor" value="#FFFFFF" /> ');
document.write ('</object>');
}

function openLimitedServiceSellingZones()
{
document.write ('<object data="floorplans_ls.swf" type="application/x-shockwave-flash" width="557" height="550">');
document.write ('<param name="movie" value="floorplans_ls.swf" />');
document.write ('<param name="menu" value="false" />');
document.write ('<param name="quality" value="high" />');
document.write ('<param name="bgcolor" value="#FFFFFF" />');
document.write ('</object>');
}

function openCollegesSellingZones()
{
document.write ('<object data="floorplans_cu.swf" type="application/x-shockwave-flash" width="557" height="550">');
document.write ('<param name="movie" value="floorplans_cu.swf" />');
document.write ('<param name="menu" value="false" />');
document.write ('<param name="quality" value="high" />');
document.write ('<param name="bgcolor" value="#FFFFFF" />');
document.write ('</object>');
}

function openHealthSellingZones()
{
document.write ('<object data="floorplans_hh.swf" type="application/x-shockwave-flash" width="557" height="550">');
document.write ('<param name="movie" value="floorplans_hh.swf" />');
document.write ('<param name="menu" value="false" />');
document.write ('<param name="quality" value="high" />');
document.write ('<param name="bgcolor" value="#FFFFFF" />');
document.write ('</object>');
}          

function openHomeFlash()
{
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="415" height="150" id="fca_brands" align="middle">');
    document.write ('<param name="allowScriptAccess" value="sameDomain" />');
    document.write('<param name="movie" value="fca_brands.swf" />');
    document.write ('<param name="quality" value="high" />');
    document.write ('<param name="bgcolor" value="#ffffff" />');
    document.write('<embed src="fca_brands.swf" quality="high" bgcolor="#ffffff" width="415" height="150" name="fca_brands" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
    document.write ('</object>');
}

function openCStoreMaxProfit()
{
document.write ('<object data="/tools/floorplans_cs.swf" type="application/x-shockwave-flash" width="557" height="550">');
document.write ('<param name="movie" value="/tools/floorplans_cs.swf" />');
document.write ('<param name="menu" value="false" />');
document.write ('<param name="quality" value="high" />');
document.write ('<param name="bgcolor" value="#FFFFFF" />');
document.write ('</object>');
}

function openGraph(level, curCases, projCases, curPrice, projPrice) {
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="550" height="295" id="cstore_graph" align="middle">');
    document.write('<param name="allowScriptAccess" value="sameDomain" />');
    document.write('<param name="movie" value="/cstore/imaprogram/SBW_C-Store_POS.swf?level=' + level + '&curCases=' + curCases + '&projCases=' + projCases + '&curPrice=' + curPrice + '&projPrice=' + projPrice + '" />');
    document.write('<param name="quality" value="high" />');
    document.write('<param name="bgcolor" value="#d3ecfa" />');
    document.write('<param NAME="wmode" VALUE="transparent">');
    document.write('<embed src="/cstore/imaprogram/SBW_C-Store_POS.swf?level=' + level + '&curCases=' + curCases + '&projCases=' + projCases + '&curPrice=' + curPrice + '&projPrice=' + projPrice + '" wmode="transparent" quality="high" bgcolor="#d3ecfa" width="550" height="295" name="cstore_graph" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
    document.write('</object>');
}



//For CStore IMAProgram Track POS page

function rollImageOn(img) {
	document.images[img].src = document.images[img].src.replace('_off','_on');
}


function rollImageOff(img) {
	document.images[img].src = document.images[img].src.replace('_on','_off');
	
	//alert(document.getElementById('privacy-' + img).style.display);
	
	if (document.getElementById('track-' + img).style.display != "none")
	{
		document.images[img].src = document.images[img].src.replace('_off','_on');
	}
}


function showDiv(layer_to_show) {
	document.getElementById('track-tab1').style.display = "none";
	document.getElementById('track-tab2').style.display = "none";
	
	document.images['tab1'].src = document.images['tab1'].src.replace('_on','_off');
	document.images['tab2'].src = document.images['tab2'].src.replace('_on', '_off');

	document.getElementById('track-' + layer_to_show).style.display = "block";
	document.images[layer_to_show].src = document.images[layer_to_show].src.replace('_off', '_on');
}

function showLabelDiv(label_to_show) {
    document.getElementById('tracklabel-labeldiv1').style.display = "none";
    document.getElementById('tracklabel-labeldiv2').style.display = "none";

    document.getElementById('tracklabel-' + label_to_show).style.display = "block";

}

function togglePurchaseDiv(layer_to_show) {

    if (layer_to_show == 'store') {
        document.getElementById('main_headline').style.display = "block";
    }
    else {
        document.getElementById('main_headline').style.display = "none";
    }

    if (layer_to_show  == "all") {
        document.getElementById('main_headline2').style.display = "block";
    }
    else {
        document.getElementById('main_headline2').style.display = "none";
    }
    
}


function showFaq(id) {    
    if(id != "")
    {
	    document.getElementById(id).style.visibility = "visible";
	    document.getElementById(id).style.display = "block";
	}   
}

function hideFaq()
{
	for (i=1; i < 43; i++) 
	{
		document.getElementById('faq' + i).style.visibility = "hidden";
		document.getElementById('faq' + i).style.display = "none";
	}
	
}

