<!--
// Copyright © 2005-2010 Jandus Technologies - www.smartwebby.com - All Rights Reserved.
// This script in part or whole is not to be used without taking prior written permission from SmartWebby.com and Jandus Technologies.
 var bVer = parseInt(navigator.appVersion);
 var bAgent=navigator.userAgent.toLowerCase();
 indNS=bAgent.indexOf("netscape");
 verNS=bAgent.charAt(indNS+9);
 if (!isInteger(verNS)) verNS=parseInt(bAgent.charAt(indNS+8));
 else verNS=parseInt(verNS);
 var GB = (bAgent.indexOf("gecko")!=-1);
 var FF = (bAgent.indexOf("firefox")!=-1);
 var SA = (bAgent.indexOf("safari")!=-1);
 indOP=bAgent.indexOf("opera");
 verOP=parseInt(bAgent.charAt(indOP+6));
 var OP = (indOP!=-1);
 var OP7 = (indOP!=-1 && verOP<8);
 var OP8 = (indOP!=-1 && verOP>=8);
 var NS = (indNS!=-1);
 var NS4 = (indNS!=-1 && verNS < 5);
 var NS6 = (indNS!=-1 && verNS >= 6);
 var AB = (!OP && !FF && !NS && !GB);
 var indIE=bAgent.indexOf("msie");
 var IE = (bVer >= 4 && indIE!=-1 && AB);
 var IE4 = (bVer < 4 && indIE!=-1 && AB); 
 if (IE) bVer=parseInt(bAgent.charAt(indIE+5));
 
 if (NS4 || IE4) alert ("Thank You for visiting SmartWebby.com! Your browser cannot view our website properly due to its inability to fully support CSS. Please upgrade it to the latest version or try viewing our pages with another browser. Thanks for your co-operation!");
function isInteger(s){
	var i;
    for (i = 0; i < s.length; i++){   
        var c = s.charAt(i);
		if (((c < "0") || (c > "9"))) return false;
    }
    return true;
}
 
var intW=780,intH=550,intL,intT,W,H,page;
function SetWH(w,h) {
	intW=w;
	intH=h;
	intL = Math.round((screen.availWidth - intW)/2);
	intT = Math.round((screen.availHeight - intH)/2);
}
W=intW;
H=intH;
SetWH(intW,intH);
domn='secure.smartwebby.com';
if (domn.indexOf("secure.")!=-1) {site='https://'+domn;domn='.smartwebby.com';}
else site='http://'+domn;

function OpenSample(strPage) { 
	SetWH(1010,H);
	page=site+'/view_sample.asp';
	document.cookie='COOprevpage='+strPage+'; path=/; domain='+domn+';';
	window.open(page,'','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,left='+intL+',top='+intT+',width='+intW+',height='+intH);
}

function OpenWin(strTemplate) { 
	page=site+'/view_template.asp';
	document.cookie='COOtempname='+strTemplate+'; path=/; domain='+domn+';';
	window.open(page,'','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,left='+intL+',top='+intT+',width='+intW+',height='+intH);
}

function OpenHelp(strPage) { 
	SetWH(600,400);
	page=site+'/DreamweaverTemplates/help/'+strPage+'.asp';
	window.open(page,'','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,left='+intL+',top='+intT+',width='+intW+',height='+intH);
}

function OpenTemplate(strTemplate) { 
	SetWH(W,H);
	OpenWin(strTemplate);
}

function OpenTemplate2(strTemplate) { 
	SetWH(1010,H);
	OpenWin(strTemplate);
}

function OpenTemplate1(strTemplate) { 
	SetWH(W,600);
	OpenWin(strTemplate);
}

function OpenTemplate3(strTemplate) { 
	SetWH(1010,600);
	OpenWin(strTemplate);
}
function OpenTemplate4(strTemplate) { 
	SetWH(W,650);
	OpenWin(strTemplate);
}
function OpenTemplate5(strTemplate) { 
	SetWH(1010,650);
	OpenWin(strTemplate);
}
//-->
