// INC ----------------------------------------------------------------------------------------------------------------
function IncludeJavaScript(jsFile)
{
  document.write('<script type="text/javascript" src="'
    + jsFile + '"></script>'); 
}
IncludeJavaScript('../scr/jquery-1.4.2.min.js');
IncludeJavaScript('../scr/fancybox/jquery.mousewheel-3.0.2.pack.js');
IncludeJavaScript('../scr/fancybox/jquery.fancybox-1.3.1.pack.js');

function OpenLink(LinkToOpen) {
	document.location.href = LinkToOpen;

}

// --------------------------------------------------------------------------------------------------------------------


// POPUPS -------------------------------------------------------------------------------------------------------------
function TrackIT(url)
{
	var url;
	document.location.href = url;
	return false;
} 
function TrackIT2(url2)
{
	var url2;
	window.open(url2);
	return false;
} 
function Pop(name, w, h){  

    var s1 = ("<HTML><TITLE>Ploner Woodcarving</TITLE>" + 
    "<BODY onBlur='self.focus()' BGCOLOR='#2C4474' background='../images/layout/popbg.jpg' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>" + 
    "<table width='100%' height='100%' border='0' cellpadding='0' cellspacing='0'><tr><td align='center' valign='middle'><IMG OnClick='Javascript:window.close()' SRC='" + name + "' border='1' style='border-color:#2C4474'>" + "</tr></table>");   

    w = w + 20;
    h = h + 20;
    
    var param = ("height=" + h + ",width=" + w + ",scrollbars=no,resizable=no,left=50,top=50");

    popup = window.open("","popDialog",param)

    popup.document.write(s1)
    popup.document.close()
}

function PopItNew(theURL, w, h){
        ver = parseInt(navigator.appVersion.substring(0,1));       newWin=window.open(theURL,"ipix_pop","width="+w+",height="+h+",menubar=no,toolbar=no,status=yes,resizable=no,scrollbars=no,");
	if ((!((navigator.appName == "Netscape")&&(ver==2))) && (!((navigator.appName == "Microsoft Internet Explorer")&&(ver<4)))){
          setTimeout("if (newWin) newWin.focus();",1000);
    }
}

//-->
// --------------------------------------------------------------------------------------------------------------------







