<!--

var tl=new Array(100);

tl[0]="Welcome to Europe's premier online conservatory web site";

tl[1]="Tel: 01903 850093";

tl[2]="Fax: 01903 859866";

tl[3]="Freephone 0800 833309 (UK Only)";

tl[4]="Save money with Dial A Conservatory";

var max=5;

var index=0; text_pos=0;

var str_length=tl[0].length;


function type_text() 

{        

	window.status=tl[index].substring(0,text_pos)+"_";


        if(text_pos++==str_length){

                text_pos=0;

                setTimeout("type_text()",1500);

                index++;

                if(index==max)

                        index=0;

                str_length=tl[index].length;

        } else

                setTimeout("type_text()",100);
}

function popup(Site)
{
window.open(Site, '',

'toolbar=no,statusbar=no,location=no,scrollbars=yes,resizable=nos,width=450,height=400')
}

var expDays = 1;

var page = "http://www.conservatoriestoday.co.uk/brocreq.htm";
var windowprops = "width=450,height=400,location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=no";

function GetCookie (name) {  
var arg = name + "=";  
var alen = arg.length;  
var clen = document.cookie.length;  
var i = 0;  
while (i < clen) {    
var j = i + alen;    
if (document.cookie.substring(i, j) == arg)      
return getCookieVal (j);    
i = document.cookie.indexOf(" ", i) + 1;    
if (i == 0) break;   
}  
return null;
}
function SetCookie (name, value) {  
var argv = SetCookie.arguments;  
var argc = SetCookie.arguments.length;  
var expires = (argc > 2) ? argv[2] : null;  
var path = (argc > 3) ? argv[3] : null;  
var domain = (argc > 4) ? argv[4] : null;  
var secure = (argc > 5) ? argv[5] : false;  
document.cookie = name + "=" + escape (value) + 
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
((path == null) ? "" : ("; path=" + path)) +  
((domain == null) ? "" : ("; domain=" + domain)) +    
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {  
var exp = new Date();  
exp.setTime (exp.getTime() - 1);  
var cval = GetCookie (name);  
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
function amt(){
var count = GetCookie('count')
if(count == null) {
SetCookie('count','1')
return 1
}
else {
var newcount = parseInt(count) + 1;
DeleteCookie('count')
SetCookie('count',newcount,exp)
return count
   }
}
function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function checkCount()
 {
var count = GetCookie('count')
if (count <1 )
{
count++;
SetCookie('count', count, exp);

window.open(page, "", windowprops);

}
else
{
count++;
SetCookie('count', count, exp);
   }
}

if (self != top)
    top.location.replace(self.location);

function frameJammer_hp(){
   var framedPage = location.search;
   if (framedPage.length > 1){
      framedPage = framedPage.substring(1);
      var theSplit = framedPage.indexOf('~');
      var thePage = framedPage.substring(0,theSplit);
      var theFrame = framedPage.substring(theSplit+1);
      eval("top."+ theFrame+".location.replace('"+ thePage+"')");
      }
   }

var agt = navigator.userAgent.toLowerCase();
var is_major = parseInt(navigator.appVersion);
var is_iemacdud = (agt.indexOf('msie')!=-1) && (agt.indexOf('mac')!=-1) && (is_major<4);
if (is_iemacdud) setTimeout('frameJammer_hp()',1500);

function DateStamp() {

var d = new Array(

"Sunday",

"Monday",

"Tuesday",

"Wednesday",

"Thursday",

"Friday",

"Saturday"

);



var m = new Array(

"January",

"February",

"March",

"April",

"May",

"June",

"July",

"August",

"September",

"October",

"November",

"December"

);



var today = new Date();

var day = today.getDate();

var year = today.getYear();

if (year < 2000) year += 1900; 

document.write(d[today.getDay()]+" "+day+" "+m[today.getMonth()]+"  " + year);

//return d[today.getDay()]+", "+m[today.getMonth()]+" "+day+", " + year;

}



function TimeStamp() {

	var Stamp = new Date();

	var Hours;

	var Mins;

	var Time;

	Hours = Stamp.getHours();

	Mins = Stamp.getMinutes();

	if (Hours >= 12) Time = " p.m.";

		else Time = " a.m.";

	if (Hours > 12) Hours -= 12;

	if (Hours == 0) Hours = 12;

	if (Mins < 10) Mins = "0" + Mins;

	document.write(Hours + ":" + Mins + Time);

}

function openedjor(winfile)
{
window.open (winfile,'','scrollbars=yes,width=400,height=250')
}

function openprivacy(winfile)
{
window.open (winfile,'','scrollbars=yes,width=500,height=300')
}

function openWindow(winfile)
{
window.open (winfile,'','scrollbars=no,width=400,height=250')
}

function openWindow1(winfile)
{
window.open (winfile,'','scrollbars=no,width=400,height=150')
}

function openWindow2(winfile)
{
window.open (winfile,'','scrollbars=no,width=370,height=500')
}

function openoffer(winfile)
{
window.open (winfile,'','scrollbars=no,width=400,height=450')
}

function openimg(winfile)
{
window.open (winfile,'','scrollbars=no,width=450,height=350')
}

function openimg2(winfile)
{
window.open (winfile,'','scrollbars=no,width=350,height=480')
}

function openimg3(winfile)
{
window.open (winfile,'','scrollbars=no,width=370,height=460')
}

function openimg4(winfile)
{
window.open (winfile,'','scrollbars=no,width=445,height=370')
}

function openimg5(winfile)
{
window.open (winfile,'','scrollbars=no,width=450,height=420')
}

function openimg6(winfile)
{
window.open (winfile,'','scrollbars=no,width=350,height=510')
}

function openWindowpic(winfile)
{
window.open (winfile,'','scrollbars=no,width=530,height=422')
}

function opengallimg(winfile)
{
window.open (winfile,'','scrollbars=no,width=450,height=380')
}

function openadd(winfile)
{
window.open (winfile,'','scrollbars=no,width=515,height=250')
}

function opencoolpic(winfile)
{
window.open (winfile,'','scrollbars=no,width=530,height=400')
}

function opencoolpic2(winfile)
{
window.open (winfile,'','scrollbars=no,width=370,height=500')
}

function openland(winfile)
{
window.open (winfile,'','scrollbars=no,width=400,height=400')
}

function openport(winfile)
{
window.open (winfile,'','scrollbars=no,width=280,height=470')
}

function openport2(winfile)
{
window.open (winfile,'','scrollbars=no,width=370,height=450')
}
function openform5(winfile)
{
window.open (winfile,'','scrollbars=yes,width=450,height=500')
}


/* Zooming link script by Paul Anderson, copyright 2001 CNET Builder.com.
   May be freely used with attribution. Not for resale. All rights reserved. 
   Make a link zoom open by adding the event handler
   
   onclick="zoomBox(event,this);return false"
   
   To zoom into a new, positioned window add width, height, left, and top
   
   onclick="zoomBox(event,this,500,400,100,50);return false"
   */

var maxW,maxH,fromX,fromY,toX,toY,adjX,adjY,zBox,zStep=0,zLink,zNew;

function zoomBox(evt,zlink,maxw,maxh,tox,toy) {
if (arguments.length > 2) zNew=1;
scrollH=(window.pageYOffset!=null)?window.pageYOffset:document.body.scrollTop;
maxW=maxw?maxw:window.innerWidth?innerWidth:document.body.clientWidth;
maxH=maxh?maxh:window.innerHeight?innerHeight:document.body.clientHeight;
toX=tox?tox:0;
toY=(toy?toy:0)+scrollH;
fromX=evt.pageX?evt.pageX:evt.clientX;
fromY=(evt.pageY?evt.pageY:evt.clientY)+(document.all?scrollH:0);
adjX=toX+evt.screenX-fromX;
adjY=toY+evt.screenY-fromY;
if (document.createElement && document.body.appendChild && !zBox) {
	zBox=document.createElement("div");
	zBox.style.position="absolute";
	document.body.appendChild(zBox);
} else if (document.all && !zBox) {
	document.all[document.all.length-1].outerHTML+='<div id="zBoxDiv" style="position:absolute"></div>';
	zBox=document.all.zBoxDiv;
} else if (document.layers && !zBox) {
	zBox=new Layer(maxW);
	zBox.style=zBox;
	}
zLink=zlink;
doZoom();
}

function doZoom() {
zStep+=1;
zPct=(10-zStep)/10
if (document.layers) {
	zBox.moveTo(toX+zPct*(fromX-toX),toY+zPct*(fromY-toY));
	zBox.document.open();
	zBox.document.write("<table width='"+maxW*(1-zPct)+"' height="+maxH*(1-zPct)+" border=2 cellspacing=0><tr><td></td></tr></table>");
	zBox.document.close();
	} else {
	zBox.style.border="2px solid #999999";
	zBox.style.left=toX+zPct*(fromX-toX);
	zBox.style.top=toY+zPct*(fromY-toY);
	zBox.style.width=maxW*(1-zPct);
	zBox.style.height=maxH*(1-zPct);
	}
zBox.style.visibility="visible";
if (zStep < 10) setTimeout("doZoom("+fromX+","+fromY+","+toX+","+toY+")",30);
else {
	zBox.style.visibility='hidden';
	zStep=0;
	if (zLink && !zNew) location.href=zLink.href;
	else if (zLink && zNew) {
		var w=window.open(zLink.href,'','width='+maxW+',height='+maxH+',left='+adjX+',top='+adjY+',scrollbars,resizable');
		zNew=null;
		}
	}
}



-->
