// JavaScript Document

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function onSICheck(cb){
	if(cb.checked){
		document.getElementById('shipping').style.display = 'none';
	}else{
		document.getElementById('shipping').style.display = 'block';
	}
}


var currentItem;

	/*function getUpdate(typ,pr1,pr2,pid) {
		if(typ == "item") { currentItem = pr1; setTimeout("getItemData(currentItem)",100); }
	};*/

	/*function getItemData(idx) {
		var obj = thisMovie("thePlayerId").itemData(idx);
		
	};*/

	// This is a javascript handler for the player and is always needed.
	function thisMovie(movieName) {
	    if(navigator.appName.indexOf("Microsoft") != -1) {
			return window[movieName];
		} else {
			return document[movieName];
		}
	};

function createPlayer(theFile,theImage,theDiv) {
	var s = new SWFObject("mediaplayer.swf","thePlayerId","260","202","7");
	s.addParam("allowfullscreen","true");
	s.addParam('allowscriptaccess','true');
	s.addVariable("file",theFile);
	s.addVariable("width","260");
	s.addVariable("height","202");
	s.addVariable("displayheight","202");

	s.addVariable("overstretch","fit");
	s.addVariable("showicons","true");
	s.addVariable("autostart","true");
	s.addVariable("image",theImage);
	s.addVariable("enablejs","true");
	s.addVariable("javascriptid","thePlayerId");

	s.write(theDiv);
}

function createPlayer2(theFile,theImage,theDiv) {
	var s = new SWFObject("mediaplayer.swf","thePlayerId","320","240","7");
	s.addParam("allowfullscreen","true");
	s.addParam('allowscriptaccess','true');
	s.addVariable("file",theFile);
	s.addVariable("width","320");
	s.addVariable("height","240");
	s.addVariable("displayheight","320");

	s.addVariable("overstretch","fit");
	s.addVariable("showicons","true");
	s.addVariable("autostart","true");
	s.addVariable("image",theImage);
	s.addVariable("enablejs","true");
	s.addVariable("javascriptid","thePlayerId");

	s.write(theDiv);
}

function createPlayer3(theFile,theImage,theDiv) {
	var s = new SWFObject("mediaplayer.swf","thePlayerId","300","230","7");
	s.addParam("allowfullscreen","true");
	s.addParam('allowscriptaccess','true');
	s.addVariable("file",theFile);
	s.addVariable("width","300");
	s.addVariable("height","230");
	s.addVariable("displayheight","230");

	s.addVariable("overstretch","fit");
	s.addVariable("showicons","true");
	s.addVariable("autostart","false");
	s.addVariable("image",theImage);
	s.addVariable("enablejs","true");
	s.addVariable("javascriptid","thePlayerId");

	s.write(theDiv);
}

function setBgImg(theImg) {
  document.bgImg.src=theImg;
}
