function require(jspath) {
    document.write('<script type="text/javascript" src="'+jspath+'"><\/script>');
}
require("/js/jquery.effects.core.js");
require("/js/jquery.effects.highlight.js");
require("/js/jquery.simpletip.min.js");

//SFIR
var futura = {
	src: '/futura.swf'
};
sIFR.activate(futura);
sIFR.replace(futura, {
	selector: 'h1',css: [
		'.sIFR-root { text-align: left; color: #ffffff; }'
		,'.sIFR-root .alt { text-align: left; color: #333333; }'
		,'a { text-decoration: none; }'
		,'a:link { color: #ffffff; }'
		,'a:hover { color: #ffffff; }'
	]
	,wmode: 'transparent'
});

//jQuery Drop Shadow Text
$(".btn-font").html('<div class="textshadow">'+$(".btn-font").html()+'</div><div style="position:relative; top:-1px; left:-1px;">'+$(".btn-font").html()+'</div>');

//JQuery Effects
$(document).ready(function(){
/*	$(".action-update-cart").click(function () {
		$(".panel-minicart").effect("highlight", {}, 500);
		$(".eball").animate({
			"top": "20px",
			opacity: 0.0
		}, 500).animate({
			"top": "-250px",
			opacity: 1.0
		}, 0);
		$(".carticon").animate({
			opacity: 1.0
		}, 300).animate({
			"top": "2px"
		}, 100).animate({
			"top": "0"
		}, 100);
	});
*/

	$.ajax({
		type: "GET",
		url: "/store/Ajax/getCartCount.cfm",
		data: "r=" + Math.random(),
		success: function(msg){
			$(".itccount").html(msg+" items");  
		}
	});
});


	function callVideo(action){
		
			var flash = getFlashObject();
			//window.alert(flash);
			flash.video_action(action);
	}
	function startNew(video){
		
			var flash = getFlashObject();
			//window.alert(flash);
			flash.triggerNew(video);
	}
	var flash_ID = "sotester";
	var flash_Obj = null;
	function getFlashObject(){
		if (flash_Obj == null){
			var flashObj;
			if (navigator.appName.indexOf( "Microsoft" ) != -1){
	       	   flashObj = window[flash_ID];
	   	    } 
	   		else{
	    		 flashObj = window.document[flash_ID];
	    	}
	    	flash_Obj = flashObj;
		}
		return flash_Obj;
	}