//tooltip
var timer = '';

function over(text) {
    window.status = text;
    return true;
}

function out() {
    window.status = '';
    return true;
}
//boscia
function itemPop(source){
newWindow = window.open("","product","toolbar=0,location=0,scrollbars=0,width=500,height=500,resizeable=0,left=50,top=50");
header = "<html><title>Product Detail</title><body><p align='center'>";
footer = "&nbsp;<br><a href="+'"'+"#"+'" ' + "onClick="+'"'+ "window.close();"+'" ' + "style=" +'"' +	"font-family: Verdana, Arial, Helvetica, sans-serif;	font-size: 10px;	font-weight: bold; color: #666666;	text-decoration: none;" + '"'+">Close</a></p></body></html>";
image = "<img src='"+source+"' border='0'>";

bod = header+image+footer;

newWindow.document.write(bod);
newWindow.document.close();
newWindow.focus();

}

function popup(source, caption, magazine){
	if(arguments.length == 1){
		caption="";
		newWindow = window.open("","pop","toolbar=0,location=0,scrollbars=0,width=500,height=450,resizeable=0,left=50,top=50");
	}else{
		if(arguments.length == 3){
			magazine = "<strong>"+magazine+"</strong> ";
		}else{
			magazine = "";
		}
		caption = "<p align=\"center\" style=\"font-size:10px; color: #333333;\">"+magazine+"\""+caption+"\"</p>";
		newWindow = window.open("","pop","toolbar=0,location=0,scrollbars=0,width=500,height=470,resizeable=0,left=50,top=50");
	}
	//newWindow = window.open("","pop","toolbar=0,location=0,scrollbars=0,width=500,height=450,resizeable=0,left=50,top=50");
	header = "<html><body><font face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"2\" >";
	if (source.search(".mov")>0){
		var image = '<object id="movie1" \
    classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" \
    codebase="http://www.apple.com/qtactivex/qtplugin.cab" \
    width="480" height="376"> \
    <param name="src" value="assets/video/'+source+'" /> \
    <param name="controller" value="true" /> \
    <param name="showlogo" value="false" /> \
    <param name="autoplay" value="true" /> \
    <!--[if !IE]--> \
    <EMBED name="movie1" \
        height="376" \
        width="480" \
        src="assets/video/'+source+'" \
        type="video/quicktime" \
        pluginspage="www.apple.com/quicktime/download" \
        controller="true" \
        showlogo="false" \
        autoplay="true" \
    /> \
    <!--![endif]--> \
</object>';
	}else{//if match 
		image = "<p align='center' style=\"margin-top: 25px;margin-bottom:15px;\"><img src='images/"+source+"' border='1'></p>";
	}
	footer = caption + "<p align=\"center\" style=\"margin-top: 0px;\"><a href='#' onClick=" + '"' +"window.close();"+ '"' + "style=" + '"' + " 	font-family: Verdana, Arial, Helvetica, sans-serif;	font-size: 10px;	font-weight: bold; color: #666666;	text-decoration: none; "+'"' +">Close</a></p></font></body></html>";
	
	bod = header+image+footer;
	
	newWindow.document.write(bod);
	newWindow.document.close();
	newWindow.focus();
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

