var stIsIE=false;sorttable={init:function(){if(arguments.callee.done)return;arguments.callee.done=true;if(_timer)clearInterval(_timer);if(!document.createElement||!document.getElementsByTagName)return;sorttable.DATE_RE=/^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/;forEach(document.getElementsByTagName('table'),function(table){if(table.className.search(/\bsortable\b/)!=-1){sorttable.makeSortable(table);}});},makeSortable:function(table){if(table.getElementsByTagName('thead').length==0){the=document.createElement('thead');the.appendChild(table.rows[0]);table.insertBefore(the,table.firstChild);}
if(table.tHead==null)table.tHead=table.getElementsByTagName('thead')[0];if(table.tHead.rows.length!=1)return;sortbottomrows=[];for(var i=0;i<table.rows.length;i++){if(table.rows[i].className.search(/\bsortbottom\b/)!=-1){sortbottomrows[sortbottomrows.length]=table.rows[i];}}
if(sortbottomrows){if(table.tFoot==null){tfo=document.createElement('tfoot');table.appendChild(tfo);}
for(var i=0;i<sortbottomrows.length;i++){tfo.appendChild(sortbottomrows[i]);}
delete sortbottomrows;}
headrow=table.tHead.rows[0].cells;for(var i=0;i<headrow.length;i++){if(!headrow[i].className.match(/\bsorttable_nosort\b/)){mtch=headrow[i].className.match(/\bsorttable_([a-z0-9]+)\b/);if(mtch){override=mtch[1];}
if(mtch&&typeof sorttable["sort_"+override]=='function'){headrow[i].sorttable_sortfunction=sorttable["sort_"+override];}else{headrow[i].sorttable_sortfunction=sorttable.guessType(table,i);}
headrow[i].sorttable_columnindex=i;headrow[i].sorttable_tbody=table.tBodies[0];dean_addEvent(headrow[i],"click",function(e){if(this.className.search(/\bsorttable_sorted\b/)!=-1){sorttable.reverse(this.sorttable_tbody);this.className=this.className.replace('sorttable_sorted','sorttable_sorted_reverse');this.removeChild(document.getElementById('sorttable_sortfwdind'));sortrevind=document.createElement('span');sortrevind.id="sorttable_sortrevind";sortrevind.innerHTML=stIsIE?'&nbsp<font face="webdings">5</font>':'&nbsp;&#x25B4;';this.appendChild(sortrevind);return;}
if(this.className.search(/\bsorttable_sorted_reverse\b/)!=-1){sorttable.reverse(this.sorttable_tbody);this.className=this.className.replace('sorttable_sorted_reverse','sorttable_sorted');this.removeChild(document.getElementById('sorttable_sortrevind'));sortfwdind=document.createElement('span');sortfwdind.id="sorttable_sortfwdind";sortfwdind.innerHTML=stIsIE?'&nbsp<font face="webdings">6</font>':'&nbsp;&#x25BE;';this.appendChild(sortfwdind);return;}
theadrow=this.parentNode;forEach(theadrow.childNodes,function(cell){if(cell.nodeType==1){cell.className=cell.className.replace('sorttable_sorted_reverse','');cell.className=cell.className.replace('sorttable_sorted','');}});sortfwdind=document.getElementById('sorttable_sortfwdind');if(sortfwdind){sortfwdind.parentNode.removeChild(sortfwdind);}
sortrevind=document.getElementById('sorttable_sortrevind');if(sortrevind){sortrevind.parentNode.removeChild(sortrevind);}
this.className+=' sorttable_sorted';sortfwdind=document.createElement('span');sortfwdind.id="sorttable_sortfwdind";sortfwdind.innerHTML=stIsIE?'&nbsp<font face="webdings">6</font>':'&nbsp;&#x25BE;';this.appendChild(sortfwdind);row_array=[];col=this.sorttable_columnindex;rows=this.sorttable_tbody.rows;for(var j=0;j<rows.length;j++){row_array[row_array.length]=[sorttable.getInnerText(rows[j].cells[col]),rows[j]];}
row_array.sort(this.sorttable_sortfunction);tb=this.sorttable_tbody;for(var j=0;j<row_array.length;j++){tb.appendChild(row_array[j][1]);}
delete row_array;});}}},guessType:function(table,column){sortfn=sorttable.sort_alpha;for(var i=0;i<table.tBodies[0].rows.length;i++){text=sorttable.getInnerText(table.tBodies[0].rows[i].cells[column]);if(text!=''){if(text.match(/^-?[£$¤]?[\d,.]+%?$/)){return sorttable.sort_numeric;}
possdate=text.match(sorttable.DATE_RE)
if(possdate){first=parseInt(possdate[1]);second=parseInt(possdate[2]);if(first>12){return sorttable.sort_ddmm;}else if(second>12){return sorttable.sort_mmdd;}else{sortfn=sorttable.sort_ddmm;}}}}
return sortfn;},getInnerText:function(node){hasInputs=(typeof node.getElementsByTagName=='function')&&node.getElementsByTagName('input').length;if(node.getAttribute("sorttable_customkey")!=null){return node.getAttribute("sorttable_customkey");}
else if(typeof node.textContent!='undefined'&&!hasInputs){return node.textContent.replace(/^\s+|\s+$/g,'');}
else if(typeof node.innerText!='undefined'&&!hasInputs){return node.innerText.replace(/^\s+|\s+$/g,'');}
else if(typeof node.text!='undefined'&&!hasInputs){return node.text.replace(/^\s+|\s+$/g,'');}
else{switch(node.nodeType){case 3:if(node.nodeName.toLowerCase()=='input'){return node.value.replace(/^\s+|\s+$/g,'');}
case 4:return node.nodeValue.replace(/^\s+|\s+$/g,'');break;case 1:case 11:var innerText='';for(var i=0;i<node.childNodes.length;i++){innerText+=sorttable.getInnerText(node.childNodes[i]);}
return innerText.replace(/^\s+|\s+$/g,'');break;default:return'';}}},reverse:function(tbody){newrows=[];for(var i=0;i<tbody.rows.length;i++){newrows[newrows.length]=tbody.rows[i];}
for(var i=newrows.length-1;i>=0;i--){tbody.appendChild(newrows[i]);}
delete newrows;},sort_numeric:function(a,b){aa=parseFloat(a[0].replace(/[^0-9.-]/g,''));if(isNaN(aa))aa=0;bb=parseFloat(b[0].replace(/[^0-9.-]/g,''));if(isNaN(bb))bb=0;return aa-bb;},sort_alpha:function(a,b){if(a[0]==b[0])return 0;if(a[0]<b[0])return-1;return 1;},sort_ddmm:function(a,b){mtch=a[0].match(sorttable.DATE_RE);y=mtch[3];m=mtch[2];d=mtch[1];if(m.length==1)m='0'+m;if(d.length==1)d='0'+d;dt1=y+m+d;mtch=b[0].match(sorttable.DATE_RE);y=mtch[3];m=mtch[2];d=mtch[1];if(m.length==1)m='0'+m;if(d.length==1)d='0'+d;dt2=y+m+d;if(dt1==dt2)return 0;if(dt1<dt2)return-1;return 1;},sort_mmdd:function(a,b){mtch=a[0].match(sorttable.DATE_RE);y=mtch[3];d=mtch[2];m=mtch[1];if(m.length==1)m='0'+m;if(d.length==1)d='0'+d;dt1=y+m+d;mtch=b[0].match(sorttable.DATE_RE);y=mtch[3];d=mtch[2];m=mtch[1];if(m.length==1)m='0'+m;if(d.length==1)d='0'+d;dt2=y+m+d;if(dt1==dt2)return 0;if(dt1<dt2)return-1;return 1;},shaker_sort:function(list,comp_func){var b=0;var t=list.length-1;var swap=true;while(swap){swap=false;for(var i=b;i<t;++i){if(comp_func(list[i],list[i+1])>0){var q=list[i];list[i]=list[i+1];list[i+1]=q;swap=true;}}
t--;if(!swap)break;for(var i=t;i>b;--i){if(comp_func(list[i],list[i-1])<0){var q=list[i];list[i]=list[i-1];list[i-1]=q;swap=true;}}
b++;}}}
if(document.addEventListener){document.addEventListener("DOMContentLoaded",sorttable.init,false);}
if(/WebKit/i.test(navigator.userAgent)){var _timer=setInterval(function(){if(/loaded|complete/.test(document.readyState)){sorttable.init();}},10);}
window.onload=sorttable.init;function dean_addEvent(element,type,handler){if(element.addEventListener){element.addEventListener(type,handler,false);}else{if(!handler.$$guid)handler.$$guid=dean_addEvent.guid++;if(!element.events)element.events={};var handlers=element.events[type];if(!handlers){handlers=element.events[type]={};if(element["on"+type]){handlers[0]=element["on"+type];}}
handlers[handler.$$guid]=handler;element["on"+type]=handleEvent;}};dean_addEvent.guid=1;function removeEvent(element,type,handler){if(element.removeEventListener){element.removeEventListener(type,handler,false);}else{if(element.events&&element.events[type]){delete element.events[type][handler.$$guid];}}};function handleEvent(event){var returnValue=true;event=event||fixEvent(((this.ownerDocument||this.document||this).parentWindow||window).event);var handlers=this.events[event.type];for(var i in handlers){this.$$handleEvent=handlers[i];if(this.$$handleEvent(event)===false){returnValue=false;}}
return returnValue;};function fixEvent(event){event.preventDefault=fixEvent.preventDefault;event.stopPropagation=fixEvent.stopPropagation;return event;};fixEvent.preventDefault=function(){this.returnValue=false;};fixEvent.stopPropagation=function(){this.cancelBubble=true;}
if(!Array.forEach){Array.forEach=function(array,block,context){for(var i=0;i<array.length;i++){block.call(context,array[i],i,array);}};}
Function.prototype.forEach=function(object,block,context){for(var key in object){if(typeof this.prototype[key]=="undefined"){block.call(context,object[key],key,object);}}};String.forEach=function(string,block,context){Array.forEach(string.split(""),function(chr,index){block.call(context,chr,index,string);});};var forEach=function(object,block,context){if(object){var resolve=Object;if(object instanceof Function){resolve=Function;}else if(object.forEach instanceof Function){object.forEach(block,context);return;}else if(typeof object=="string"){resolve=String;}else if(typeof object.length=="number"){resolve=Array;}
resolve.forEach(object,block,context);}};var sites=new Array();var html_before='';var html_after='';var imagepath='/images/site/icons/';sites[0]=new Array('http://del.icio.us/post?url={url}&title={title}','Del.icio.us',imagepath+'delicious.png');sites[1]=new Array('http://reddit.com/submit?url={url}&title={title}','reddit',imagepath+'reddit.png');sites[2]=new Array('http://furl.net/storeIt.jsp?t={title}&u={url}','Furl',imagepath+'furl.png');sites[3]=new Array('http://www.stumbleupon.com/submit?url={url}','Stumble',imagepath+'stumble.png');sites[4]=new Array('http://digg.com/submit?phase=2&url={url}','Digg',imagepath+'digg.png');sites[5]=new Array('http://blinklist.com/index.php?Action=Blink/addblink.php&Url={url}&Title={title}','Blinklist',imagepath+'blinklist.png');sites[6]=new Array('http://www.mixx.com/submit?page_url={url}&title={title}','Mixx',imagepath+'mixx.png');sites[7]=new Array('http://www.technorati.com/faves?add={url}','Technorati',imagepath+'technorati.png');function swgbookmarks()
{for(i=0;i<sites.length;i++)
{var g=sites[i];var u=g[0];u=u.replace('{url}',escape(window.location.href));u=u.replace('{title}',escape(window.document.title));var img=(imagepath=='0')?'':'<img src="'+g[2]+'" alt="'+g[1]+'" /> ';var k='<a href="'+u+'">'+img+'</a>';window.document.write(html_before+k+html_after);}}
function tabberObj(argsObj)
{var arg;this.div=null;this.classMain="tabber";this.classMainLive="tabberlive";this.classTab="tabbertab";this.classTabDefault="tabbertabdefault";this.classNav="tabbernav";this.classTabHide="tabbertabhide";this.classNavActive="tabberactive";this.titleElements=['h2','h3','h4','h5','h6'];this.titleElementsStripHTML=true;this.removeTitle=true;this.addLinkId=false;this.linkIdFormat='<tabberid>nav<tabnumberone>';for(arg in argsObj){this[arg]=argsObj[arg];}
this.REclassMain=new RegExp('\\b'+this.classMain+'\\b','gi');this.REclassMainLive=new RegExp('\\b'+this.classMainLive+'\\b','gi');this.REclassTab=new RegExp('\\b'+this.classTab+'\\b','gi');this.REclassTabDefault=new RegExp('\\b'+this.classTabDefault+'\\b','gi');this.REclassTabHide=new RegExp('\\b'+this.classTabHide+'\\b','gi');this.tabs=new Array();if(this.div){this.init(this.div);this.div=null;}}
tabberObj.prototype.init=function(e)
{var
childNodes,i,i2,t,defaultTab=0,DOM_ul,DOM_li,DOM_a,aId,headingElement;if(!document.getElementsByTagName){return false;}
if(e.id){this.id=e.id;}
this.tabs.length=0;childNodes=e.childNodes;for(i=0;i<childNodes.length;i++){if(childNodes[i].className&&childNodes[i].className.match(this.REclassTab)){t=new Object();t.div=childNodes[i];this.tabs[this.tabs.length]=t;if(childNodes[i].className.match(this.REclassTabDefault)){defaultTab=this.tabs.length-1;}}}
DOM_ul=document.createElement("ul");DOM_ul.className=this.classNav;for(i=0;i<this.tabs.length;i++){t=this.tabs[i];t.headingText=t.div.title;if(this.removeTitle){t.div.title='';}
if(!t.headingText){for(i2=0;i2<this.titleElements.length;i2++){headingElement=t.div.getElementsByTagName(this.titleElements[i2])[0];if(headingElement){t.headingText=headingElement.innerHTML;if(this.titleElementsStripHTML){t.headingText.replace(/<br>/gi," ");t.headingText=t.headingText.replace(/<[^>]+>/g,"");}
break;}}}
if(!t.headingText){t.headingText=i+1;}
DOM_li=document.createElement("li");t.li=DOM_li;DOM_a=document.createElement("a");DOM_a.appendChild(document.createTextNode(t.headingText));DOM_a.href="javascript:void(null);";DOM_a.title=t.headingText;DOM_a.onclick=this.navClick;DOM_a.tabber=this;DOM_a.tabberIndex=i;if(this.addLinkId&&this.linkIdFormat){aId=this.linkIdFormat;aId=aId.replace(/<tabberid>/gi,this.id);aId=aId.replace(/<tabnumberzero>/gi,i);aId=aId.replace(/<tabnumberone>/gi,i+1);aId=aId.replace(/<tabtitle>/gi,t.headingText.replace(/[^a-zA-Z0-9\-]/gi,''));DOM_a.id=aId;}
DOM_li.appendChild(DOM_a);DOM_ul.appendChild(DOM_li);}
e.insertBefore(DOM_ul,e.firstChild);e.className=e.className.replace(this.REclassMain,this.classMainLive);this.tabShow(defaultTab);if(typeof this.onLoad=='function'){this.onLoad({tabber:this});}
return this;};tabberObj.prototype.navClick=function(event)
{var
rVal,a,self,tabberIndex,onClickArgs;a=this;if(!a.tabber){return false;}
self=a.tabber;tabberIndex=a.tabberIndex;a.blur();if(typeof self.onClick=='function'){onClickArgs={'tabber':self,'index':tabberIndex,'event':event};if(!event){onClickArgs.event=window.event;}
rVal=self.onClick(onClickArgs);if(rVal===false){return false;}}
self.tabShow(tabberIndex);return false;};tabberObj.prototype.tabHideAll=function()
{var i;for(i=0;i<this.tabs.length;i++){this.tabHide(i);}};tabberObj.prototype.tabHide=function(tabberIndex)
{var div;if(!this.tabs[tabberIndex]){return false;}
div=this.tabs[tabberIndex].div;if(!div.className.match(this.REclassTabHide)){div.className+=' '+this.classTabHide;}
this.navClearActive(tabberIndex);return this;};tabberObj.prototype.tabShow=function(tabberIndex)
{var div;if(!this.tabs[tabberIndex]){return false;}
this.tabHideAll();div=this.tabs[tabberIndex].div;div.className=div.className.replace(this.REclassTabHide,'');this.navSetActive(tabberIndex);if(typeof this.onTabDisplay=='function'){this.onTabDisplay({'tabber':this,'index':tabberIndex});}
return this;};tabberObj.prototype.navSetActive=function(tabberIndex)
{this.tabs[tabberIndex].li.className=this.classNavActive;return this;};tabberObj.prototype.navClearActive=function(tabberIndex)
{this.tabs[tabberIndex].li.className='';return this;};function tabberAutomatic(tabberArgs)
{var
tempObj,divs,i;if(!tabberArgs){tabberArgs={};}
tempObj=new tabberObj(tabberArgs);divs=document.getElementsByTagName("div");for(i=0;i<divs.length;i++){if(divs[i].className&&divs[i].className.match(tempObj.REclassMain)){tabberArgs.div=divs[i];divs[i].tabber=new tabberObj(tabberArgs);}}
return this;}
function tabberAutomaticOnLoad(tabberArgs)
{var oldOnLoad;if(!tabberArgs){tabberArgs={};}
oldOnLoad=window.onload;if(typeof window.onload!='function'){window.onload=function(){tabberAutomatic(tabberArgs);};}else{window.onload=function(){oldOnLoad();tabberAutomatic(tabberArgs);};}}
if(typeof tabberOptions=='undefined'){tabberAutomaticOnLoad();}else{if(!tabberOptions['manualStartup']){tabberAutomaticOnLoad(tabberOptions);}}
function upload(f){var status=document.getElementById('errors')
if(f==null)
{alert('Error\n\nForm not valid');return false;}
var msg='';if(f.tmpfile.value=='')msg+='You must supply a template file!<br />';if(f.tmpfeat.value=='')msg+='You must supply the features/description of the template!<br />';if(msg==''){start_upload(f);}else{status.innerHTML='<b>Please correct the following errors:</b><br />';status.innerHTML+=msg;status.style.display='block';}}
function start_upload(f){var status=document.getElementById('upload_status');status.innerHTML+=' &nbsp;<b>Please wait while your template is being uploaded</b><br />';status.style.display='block';f.dprocess.disabled=true;f.submit();}
var noneimg='/images/site/icons/emptystar.png';var starimg='/images/site/icons/star.png';function show_rating(am,rID){for(var x=1;x<=5;x++){var relid="rating_"+x+"_"+rID;document.getElementById(relid).style.background="url("+noneimg+")";}
for(var x=1;x<=am;x++){var relid="rating_"+x+"_"+rID;document.getElementById(relid).style.background="url("+starimg+")";}}
function rate(rating,rID,tid){var vars='?t='+tid+'&r='+rating+'&ty=template';var relid="rating_msg_"+rID;document.getElementById(relid).innerHTML="Loading...";ajaxReq('/sms/includes/ajax_rate.php',vars,updateTemplatesPage);}
function updateTemplatesPage(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){var result=xmlHttp.responseText;result=trim(result);var splitres=result.split("|");var rid="rating_t_"+splitres[0];var area=document.getElementById(rid);if(area==null)
{alert('sWG Rating v.4.0\n\nError!\nServer response incorrect');}
else
{area.innerHTML=splitres[1];}}}
function chkLogin(f){var msg="";if(f.uid.value=="")msg+="You must supply a username!\n";if(f.pwd.value=="")msg+="You must supply a password!\n";if(msg==""){f.submit();}else{alert(msg);}}
function checkMail(e){var filter=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(filter.test(e)){return false;}else{return true;}}
function chkCreate(f){var msg="";if(f.uid.value=="")msg+="You must supply a username!\n";if(f.pwd.value=="")msg+="You must supply a password!\n";if(f.em.value=="")msg+="You must supply an email!\n";if(checkMail(f.em.value))msg+="You must supply a VALID email!\n";if(msg==""){f.submit();}else{alert(msg);}}
function chkSettings(f){var msg="";if(f.pass.value!=f.cpass.value)msg+="You must supply both a password and confirm password!\n";if(f.email.value=="")msg+="You must supply an email!\n";if(checkMail(f.email.value))msg+="You must supply a VALID email!\n";if(msg==""){f.submit();}else{alert(msg);}}
function chkEdit(f){var msg="";if(f.tmpfeat.value=="")msg+="You must supply the features!\n";if(msg==""){f.submit();}else{alert(msg);}}
function chkFP(f){var msg="";if(f.fpuid.value=="")msg+="You must supply a username!\n";if(f.fpem.value=="")msg+="You must supply an email!\n";if(checkMail(f.fpem.value))msg+="You must supply a VALID email!\n";if(msg==""){f.submit();}else{alert(msg);}}
function contact_us(a){var flength=document.forms.length
var fn=flength-2;var f=document.forms[fn];var msg="";if(f.c_name.value=="")msg+="You must supply name!<br />";if(f.c_email.value=="")msg+="You must supply an email!<br />";if(checkMail(f.c_email.value))msg+="You must supply a VALID email!<br />";if(f.c_comm.value=="")msg+="You must supply a comment/message!<br />";if(f.c_spam.value!=a)msg+="You must answer the question correctly!<br />";if(msg==""){f.submit();}else{var status=document.getElementById('errors');status.innerHTML="<b>Please correct the following errors:</b><br />";status.innerHTML+=msg;status.style.display="block";}}
var xmlHttp
function ajaxReq(page,vars,subfunc){xmlHttp=GetXmlHttpObject()
if(xmlHttp==null){alert("Browser does not support HTTP Request")
return}
var url=page
url=url+vars
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=subfunc
xmlHttp.open("GET",url,true)
xmlHttp.send(null)}
function GetXmlHttpObject(){var objXMLHttp=null
if(window.XMLHttpRequest){objXMLHttp=new XMLHttpRequest()}else if(window.ActiveXObject){objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")}
return objXMLHttp}
function trim(s){if((s==null)||(typeof(s)!='string')||!s.length)return'';return s.replace(/^\s+/,'').replace(/\s+$/,'')}
function acden(){if(event.keyCode==8)
{return false;}
return true;}
function jumpBox(){var jbobj=document.getElementById('swgjb');var index=jbobj.selectedIndex
var url=jbobj.options[index].value
location.href=url;}
function switchdiv(id){var diq=document.getElementById(id).style;diq.display=(diq.display=="none")?"":"none";}
function switchtext(id,a,b){var diq=document.getElementById(id);diq.innerHTML=(diq.innerHTML==a)?b:a;}
function onsitehelp(url,w,h){var w=window.open('http://docs.spyka.co.uk/onsitehelp/justfreetemplates.com/'+url,'jft_help_window','width='+w+',height='+h+',scrollbars=1');w.focus();}
function random_text_ad()
{var m=new Array();m[0]='Need help on editing templates? Great tips, advice and tricks on web design? <a href="http://community.spyka.co.uk/index.php" title="webmaster forums">Check out our webmaster forums</a>';m[1]='Want high quality, valid CSS and XHTML, original templates? <a href="http://www.spyka.net" title="free webmaster resources">spyka Webmaster</a>';m[2]='Free CSS Templates, forum mods, scripts and code snippets - <a href="http://www.spyka.net" title="free webmaster resources">spyka Webmaster</a>';m[3]='Looking for something to pass the time? Flash games, humour, jokes, puzzles and articles at <a href="http://www.randomquirk.com" title="games, humour, jokes and puzzles">Random Quirk!</a>';m[4]='phpBB forum styles, hacks and resources? Check out <a href="http://www.awesomestyles.com" title="phpbb3 styles">phpbb3 styles</a>';var rand=Math.floor(Math.random()*m.length);var area=document.getElementById('note');area.innerHTML='<p>'+m[rand]+'</p>';}
function addtofav()
{var title="Just FREE Templates - free web templates";var url="http://www.justfreetemplates.com";if(window.sidebar)
{window.sidebar.addPanel(title,url,"");}
else if(window.external)
{window.external.AddFavorite(url,title);}
else if(window.opera&&window.print)
{var elem=document.createElement('a');elem.setAttribute('href',url);elem.setAttribute('title',title);elem.setAttribute('rel','sidebar');elem.click();}}
function _st(g)
{var h=document.getElementById('tabbed-content-holder');var c=document.getElementById(g);h.innerHTML=c.innerHTML;}
var opacity=0.8;function findPosY(obj)
{var curtop=0;if(obj.offsetParent)
while(1)
{curtop+=obj.offsetTop;if(!obj.offsetParent)
break;obj=obj.offsetParent;}
else if(obj.y)
curtop+=obj.y;return curtop;}
$(document).ready(function(){/*$('.image-container').hover(function(){$('.fadeimg',this).fadeTo('fast',1.0);$('.fadeimg',this).css("border","4px solid #F67848");},function(){$('.fadeimg',this).fadeTo('fast',opacity);$('.fadeimg',this).css("border","4px solid #fff");});$('.fadeimg').fadeTo('fast',opacity);$('.image-container').each(function(i){$(this).simpletip({fixed:true,position:'top',offset:[xoffset,yoffset],content:$('.templatedata',this).html(),onBeforeShow:function(){$('.tooltip').css("display","none");$('.fadeimg').css("border","4px solid #fff");$('.fadeimg:eq('+i+')').css("border","4px solid #F67848");},onShow:function(){var a=$('.tooltip:eq('+i+')').offset().top;var b=window.scrollY;if(b>a)
{$.scrollTo('.tooltip:eq('+i+')');}}});tb_init('.image-container:eq('+i+') a.taglink');$('.templatedata',this).html("");});*/
																																																																												  
	
if(navigator.userAgent.indexOf("Opera") == -1)
{																																																																											  if($('.bsarocks').length>0 && 1==2)
{var a=new Array('<a target="_blank" href="http://themeforest.net?ref=spykawg"><img src="/images/tf2.gif" alt="Premium templates" /></a>','<a target="_blank" href="http://www.BlueHost.Com/track/spykawg/jftop"><img src="/images/bh2.gif" alt="Cheap web hosting" /></a>','<a target="_blank" href="http://www.dreamhost.com/r.cgi?259541"><img src="http://www.spyka.co.uk/network/common/images/dh-2.gif" alt="DreamHost" /></a>','<a target="_blank" href="http://www.1and1.co.uk/?k_id=17376720"><img src="http://www.spyka.co.uk/network/common/images/1and1-2.gif" alt="1and1 web hosting" /></a>','<a target="_blank" href="http://www.HotScripts.com/?RID=N720153"><img src="http://spyka.co.uk/network/common/images/hs-4.jpg" alt="HotScripts" /></a>');var rand=Math.floor(Math.random()*a.length);$('.slot3bc-4').html(a[rand]);}
if($('.sidebar #google_ads_frame1').length<1)
{var a=new Array('<a href="http://store.templatemonster.com?aff=spyka"><img border="0" src="/images/mts1.gif" width="125" height="125" alt="Flash templates"/></a>','<a href="http://store.templatemonster.com?aff=spyka"><img border="0" src="/images/mts2.gif" width="125" height="125" alt="Joomla! templates"/></a>','<a href="http://store.templatemonster.com?aff=spyka"><img border="0" src="/images/mts3.gif" width="125" height="125" alt="WordPress themes"/></a>','<a href="http://store.templatemonster.com?aff=spyka"><img border="0" src="/images/mts4.gif" width="125" height="125" alt="Web templates"/></a>','<a href="http://themeforest.net?ref=spykawg"><img src="/images/tf.jpg" alt="Premium templates" /></a>');var rand1=Math.floor(Math.random()*a.length);var rand2=Math.floor(Math.random()*a.length);$('.sidebar .jft-slot').html(a[rand1]+a[rand2]);$('.sidebar .jft-slot a').css("margin","0 8px");}}});
