// <![CDATA[
function delBanner(){var xa = document.getElementById('banner');var xb = document.getElementById('bannerImg');var xc = document.getElementById('bannerTrans');var xd = xa.removeChild(xb);var xd = xa.removeChild(xc);}function stopLoading (){var a = document.getElementById('loading');a.style.display='none;';}
/* ---------------------------------------------------- sample display js -------------- */	
var ssTemp;var t;var db=[];db[10]=['images/classicfilledtrav.jpg'];db[11]=['images/medfilledtrav.jpg'];db[12]=['images/lightfilledtrav.jpg'];db[13]=['images/chippedunfilledtrav.jpg'];db[20]=['images/milanopolishedmarble.jpg'];db[21]=['images/marble_opus.jpg'];db[30]=['images/whitetravertinemosaic.jpg'];db[31]=['images/botticinomarblemosaic.jpg'];db[32]=['images/mixtravertinemosaic.jpg'];db[40]=['images/light_trav_brick.jpg'];db[41]=['images/3colour_brick.jpg'];db[42]=['images/marble_brick.jpg'];db[43]=['images/med_trav_brick.jpg'];db[44]=['images/chiaro_tumbled.jpg'];db[45]=['images/walnut_tumbled.jpg'];db[46]=['images/botticino_tumbled.jpg'];db[47]=['images/nero_tumbled.jpg'];db[50]=['images/limestone_grey.jpg'];db[51]=['images/limestone_opus.jpg'];db[52]=['images/limestone_pearl.jpg'];db[53]=['images/limestone_corinium.jpg'];db[54]=['images/limestone_romanee.jpg'];function showSample(ss){ssTemp=document.getElementById('sample');ssTemp.style.backgroundImage = 'url('+db[ss]+')';}function closeSample(){var ssKill=document.getElementById('sample');ssKill.style.backgroundImage = '';}
/* ---------------------------------------------------- offers ticker content -------------- */	
var gpActive='group1';function swapGroup(gp){var t=document.getElementById(gpActive);t.style.display='none';t=document.getElementById(gp);t.style.display='block';gpActive=gp;}
/* ---------------------------------------------------- swapping links list divs -------------- */	
var listCount=1;var rName;var r2Name;function nextList(){rName='list'+listCount;var r=document.getElementById(rName);r.style.display='none';listCount++;r2Name='list'+listCount;var r2=document.getElementById(r2Name);r2.style.display='block';}function prevList(){rName='list'+listCount;var r=document.getElementById(rName);r.style.display='none';listCount--;r2Name='list'+listCount;var r2=document.getElementById(r2Name);r2.style.display='block';}
/* ---------------------------------------------------- showing ticker for javascript browsers -------------- */	
function showTicker () {var tick=document.getElementById('ticker');tick.style.display='block';}
/* ------------------------------------------------------------------------
s3Slider Developped By: Boban Karišik -> http://www.serie3.info/ CSS Help: Mészáros Róbert -> http://www.perspectived.com/ Version: 1.0 Copyright: Feel free to redistribute the script/modify it, as long as you leave my infos at the top. ------------------------------------------------------------------------- */
(function($){$.fn.s3Slider=function(vars){var element=this;var timeOut=(vars.timeOut != undefined) ? vars.timeOut : 8000;var current=null;var timeOutFn=null;var faderStat=false;var mOver=false;var items=$("#" + element[0].id + "Content ." + element[0].id + "Image");var itemsSpan=$("#" + element[0].id + "Content ." + element[0].id + "Image span");items.each(function(i){$(items[i]).mouseover(function(){mOver=false;});$(items[i]).mouseout(function(){mOver=false;fadeElement(true);});});var fadeElement=function(isMouseOut){var thisTimeOut=(isMouseOut) ? (timeOut/10) : timeOut;thisTimeOut=(faderStat) ? 1 : thisTimeOut;if(items.length > 0){timeOutFn = setTimeout(makeSlider, thisTimeOut);}else{console.log("Poof..");}};var makeSlider = function(){current = (current != null) ? current : items[(items.length-1)];var currNo=jQuery.inArray(current, items)+1;currNo = (currNo == items.length) ? 0 : (currNo - 1);var newMargin   = $(element).width() * currNo;if(faderStat == true){if(!mOver){$(items[currNo]).fadeIn((timeOut/10),function(){if($(itemsSpan[currNo]).css('bottom')==0){$(itemsSpan[currNo]).slideUp((timeOut/10),function(){faderStat=false;current=items[currNo];if(!mOver){fadeElement(false);}});}else{$(itemsSpan[currNo]).slideDown((timeOut/10),function(){faderStat = false;current = items[currNo];if(!mOver){fadeElement(false);}});}});}} else {if(!mOver){if($(itemsSpan[currNo]).css('bottom') == 0) {$(itemsSpan[currNo]).slideDown((timeOut/10), function() {$(items[currNo]).fadeOut((timeOut/10),function(){faderStat=true;current=items[(currNo+1)];if(!mOver){fadeElement(false);}});});}else{$(itemsSpan[currNo]).slideUp((timeOut/10),function(){$(items[currNo]).fadeOut((timeOut/10),function(){faderStat=true;current=items[(currNo+1)];if(!mOver){fadeElement(false);}});});}};}};makeSlider();};})(jQuery);

/* Idea by:  Nic Wolfe */
/* This script and many more are available free online at */
/* The JavaScript Source!! http://javascript.internet.com */

function popUpSmall(URL) {
    day = new Date();
    id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=500');");
}

function addToFavorites(page, desc) {
    if (window.external) {
        window.external.AddFavorite(page, desc)
    } else {
        alert("Sorry! Your browser doesn't support this function.");
    }
}



// ]]>