
// Content: js best price garantee
function detectIE(ClassID) {
	result = false;
	document.write('<scr'+'ipt language=vb'+'script>\n on error resume next \n result = IsObject(CreateObject("' + ClassID + '"))</scr'+'ipt>\n');
	return result;
}
	
var flashObj6_s00 = false;
var isIE_s00 = (document.all && !window.opera) ? true : false;    
var isWin_s00 = (navigator.appVersion.indexOf("Windows") != -1) ? true : false; 

if(isIE_s00 && isWin_s00)
	flashObj6_s00 = detectIE("ShockwaveFlash.ShockwaveFlash.6");

function stamp_DoFSCommand(){
}

function addStamp(){
	// detect flash
	if( !( flashObj6_s00 == true ) ) return;
	var notcheck = 0; // values 1 - for testing, 0 - for site
	// url to loader (place to html page location)
	var stamp_loader ="images/stamp_loader_tcm367-67864.swf";
	// url to real stamp movie
	var stamp_swf ="images/stamp_tcm367-67863.swf";
	var flashVars = 'notcheck='+notcheck+'&movie='+escape(stamp_swf);
	document.write("<object style='height:610px; width:610px; position:absolute; top:0px; left:-100px; z-index:99;' classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='100%' height='100%' id='stamp' align='middle'> <param name='movie' value='"+stamp_loader+"' /> <param name='flashvars' value='"+flashVars+"'/> <param name='quality' value='high' /> <param name='scale' value='noscale' /> <param name='wmode' value='transparent' /></object> ");
}

function runStamp(){
	var RFlash = -1;
	var flashN = 'stamp';
	if( window.document.embeds && window.document.embeds[flashN] != null ){
		var n = 'embeds';
		RFlash = window.document.embeds[flashN];
	} else if( window.document.getElementById ){
		var n = 'getElementById';
		RFlash = window.document.getElementById(flashN);
	} else if( window.document.all ){
		var n = 'document.all';
		RFlash = window.document.all[flashN];
	} else {
		var n = 'document';
		RFlash = window.document[flashN];
	}
	if( RFlash != -1 && RFlash != null ){
		//alert(RFlash.CurrentFrame());
		RFlash.SetVariable("pageLoaded", "1" );
	}
	return true;
}