// Authored by Mark E. Heimberg for PennWell Corporation 
// Copyright (c) 2009; All Rights Reserved 
// Version 01.00 -- 10 March 200 9

var peeldir = "http://www.mysmtchina.com/pagepeel/sanc/"; 

var flapwidth = 120; 
var flapheight = 100; 
var flapid = "small"; 
var peelwidth = 800; 
var peelheight = 600; 
var peelid = "sanc1"; 

document.write('<style type="text/css">'); 
document.write('#flap, #peel { position: absolute; top: 0px; right: 0px; align: right; }'); 
document.write('#flap { z-index: 100000; visibility: visible; border: 0px solid #df0032; width: 120px; height: 100px; text-align: right; }'); 
document.write('#peel { z-index: 99999; visibility: visible; }'); 
document.write('</style>'); 

function peel(action) { 
	 if(action == 'peel') { 
		 document.getElementById('flap').style.visibility = 'hidden'; 
		 document.getElementById('peel').style.visibility = 'visible'; 
			 for(var i=0; i<document.getElementsByTagName('select').length; i++) 
        { 
            document.getElementsByTagName('select')[i].style.visibility = "hidden";
    
        }
	 } else { 
		 document.getElementById('flap').style.visibility = 'visible'; 
		 document.getElementById('peel').style.visibility = 'hidden'; 
			for(var i=0; i<document.getElementsByTagName('select').length; i++) 
        { 
            document.getElementsByTagName('select')[i].style.visibility = "visible";
    
        }
	 } 
} 

// Output the peel 
document.write('<div id="peel" onmouseout="peel(\'flap\');">'); 
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '); 
document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" '); 
document.write('width="' + peelwidth + '" height="' + peelheight + '" id="' + peelid + '" align="middle">'); 
document.write('<param name="allowScriptAccess" value="always" />'); 
document.write('<param name="wmode" value="transparent" />'); 
document.write('<param name="FlashVars" value="xmlpath=' + peeldir + '">'); 
document.write('<param name="allowFullScreen" value="false" />'); 
document.write('<param name="movie" value="' + peeldir + peelid + '.swf" /><param name="quality" value="high" />'); 
document.write('<embed src="' + peeldir + peelid + '.swf" flashvars="xmlpath=' + peeldir + '" quality="high" bgcolor="#0099ff" width="' + peelwidth + '" height="' + peelheight + '" name="' + peelid + '" '); 
document.write('align="middle" allowScriptAccess="always" allowFullScreen="false" wmode="transparent" type="application/x-shockwave-flash" '); 
document.write('pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>'); 
document.write('</div>'); 
 
// Now output the flap 
document.write('<div id="flap" onmouseover="peel(\'peel\');">'); 
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '); 
document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" '); 
document.write('width="' + flapwidth + '" height="' + flapheight + '" id="' + flapid + '" align="middle">'); 
document.write('<param name="allowScriptAccess" value="always" />'); 
document.write('<param name="wmode" value="transparent" />'); 
document.write('<param name="FlashVars" value="xmlpath=' + peeldir + '">'); 
document.write('<param name="allowFullScreen" value="false" />'); 
document.write('<param name="movie" value="' + peeldir + flapid + '.swf" /><param name="quality" value="high" />'); 
document.write('<embed src="' + peeldir + flapid + '.swf" flashvars="xmlpath=' + peeldir + '" quality="high" bgcolor="#0099ff" width="' + flapwidth + '" height="' + flapheight + '" name="' + flapid + '" '); 
document.write('align="middle" allowScriptAccess="always" allowFullScreen="false" wmode="transparent" type="application/x-shockwave-flash" '); 
document.write('pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>'); 
document.write('</div>'); 
 
peel('flap'); 
