﻿var pagecurl = new Object();

pagecurl.ad_url = escape('http://www.advansys.com/default.asp/p=238/Advansys_jobs'); // Hyperlink, this will transition when clicked on the large swf/image.

pagecurl.small_path = '/swf/small.swf'; // Path for the small flash dog eared effect
pagecurl.small_image = escape('/img.ashx?i=/images/small.jpg'); // Path for the small image to be used for initial effect, photoshop dimensions should be 75px by 75px
pagecurl.small_width = '100'; // Sizes for divs, these are different to the images for good reason
pagecurl.small_height = '100'; // Sizes for divs, these are different to the images for good reason
pagecurl.small_params = 'ico=' + pagecurl.small_image;

pagecurl.big_path = '/swf/large.swf'; // Path for the large image pull back effect
pagecurl.big_image = escape('/images/large.jpg'); // Path for the main image to be displayed after pull back of corner
pagecurl.big_width = '650'; // Sizes for divs, these are different to the images for good reason
pagecurl.big_height = '650'; // Sizes for divs, these are different to the images for good reason
pagecurl.big_params = 'big=' + pagecurl.big_image + '&ad_url=' + pagecurl.ad_url;

function sizeup987(){
	document.getElementById('pagecurlLarge').style.top = '0px'; // Displays large div
	document.getElementById('pagecurlSmall').style.top = '-1000px'; // Hides small div
}

function sizedown987(){
	document.getElementById("pagecurlSmall").style.top = "0px"; // Displays large div
	document.getElementById("pagecurlLarge").style.top = "-1000px"; // Hides small div
}

pagecurl.putObjects = function () {
// <pagecurlSmall>
document.write('<div id="pagecurlSmall" style="position:absolute;width:'+ pagecurl.small_width +'px;height:'+ pagecurl.small_height +'px;z-index:9999;right:0px;top:0px;">');
// object
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write(' id="pagecurlSmallObject" width="'+pagecurl.small_width+'" height="'+pagecurl.small_height+'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ pagecurl.small_path +'?'+ pagecurl.small_params +'"/>');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+pagecurl.small_params+'"/>');
// embed
document.write('<embed src="'+ pagecurl.small_path + '?' + pagecurl.small_params +'" name="pagecurlSmallObject" wmode="transparent" quality="high" width="'+ pagecurl.small_width +'" height="'+ pagecurl.small_height +'" flashvars="'+ pagecurl.small_params +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
document.write('</script>');
// </pagecurlSmall>
// <pagecurlLarge>
document.write('<div id="pagecurlLarge" style="position:absolute;width:'+ pagecurl.big_width +'px;height:'+ pagecurl.big_height +'px;z-index:9999;right:0px;top:0px;">');
// object
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write(' id="pagecurlLargeObject" width="'+ pagecurl.big_width +'" height="'+ pagecurl.big_height +'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ pagecurl.big_path +'?'+ pagecurl.big_params +'"/>');
document.write(' <param name="wmode" value="transparent"/>');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+ pagecurl.big_params +'"/>');
// embed
document.write('<embed src="'+ pagecurl.big_path + '?' + pagecurl.big_params +'" id="pagecurlLargeEmbed" name="pagecurlLargeObject" wmode="transparent" quality="high" width="'+ pagecurl.big_width +'" height="'+ pagecurl.big_height +'" flashvars="'+ pagecurl.big_params +'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
// </pagecurlLarge>
setTimeout('document.getElementById("pagecurlLarge").style.top = "-1000px";',1000);
}
pagecurl.putObjects();
