$(document).ready(function(){loadTheme();});function loadTheme(){mycookie=getCookie('urstv-theme-cookie');if(mycookie!=null&&mycookie!=""){if(mycookie==2){themeCoffee();}
else if(mycookie==3){themeGreen();}
else if(mycookie==4){themeFuschia();}
else if(mycookie==5){themeGoldbar();}
else if(mycookie==6){themeLiteGreen();}
else if(mycookie==7){themeCoral();}
else if(mycookie==8){themeDarkBlue();}
else if(mycookie==9){themeRedbarBlue();}
else if(mycookie==10){themeLiteBlue();}
else if(mycookie==11){themeTeal();}
else if(mycookie==12){themePinky();}
else if(mycookie==13){themeGrey();}
else if(mycookie==14){themeBlueFade();}
else if(mycookie==15){themeDarkGreen();}
else if(mycookie==16){themeCobalt();}
else if(mycookie==17){themeLavendar();}
else if(mycookie==18){themeBlueGrey();}
else if(mycookie==19){themeBumble();}
else if(mycookie==20){themeCranberry();}
else if(mycookie==21){themeBlackSea();}
else if(mycookie==22){themeBubbleGum();}
else if(mycookie==23){themeDeepRose();}
else if(mycookie==24){themeBaby();}
else if(mycookie==25){themeAmethyst();}
else if(mycookie==26){themeRubySlippers();}
else if(mycookie==27){themeChocko();}
else{themeURsTV();}
if(mycookie>=1&&mycookie<=27){selectOption('selectTheme',mycookie);}}
else{themeURsTV();}}
function changeTheme(){selectedTheme=$('#selectTheme').val();setCookie('urstv-theme-cookie',selectedTheme,365);themeURsTV();loadTheme();}
function selectOption(select_id,option_val){$('#'+select_id+' option:selected').removeAttr('selected');$('#'+select_id+' option[value='+option_val+']').attr('selected','selected');}
function themeCoffee(){$("body").css({'background-color':'#b08d68','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/coffee.png)'});}
function themeGreen(){$("body").css({'background-color':'#618138','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/green.png)'});}
function themeFuschia(){$("body").css({'background-color':'#c141a4','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/fuschia.png)'});}
function themeGoldbar(){$("body").css({'background-color':'#f6e6b5','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/goldbar.png)'});}
function themeLiteGreen(){$("body").css({'background-color':'#ccea88','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/litegreen.png)'});}
function themeCoral(){$("body").css({'background-color':'#ccea88','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/coral.png)'});}
function themeDarkBlue(){$("body").css({'background-color':'#023761','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/darkblue.png)'});}
function themeRedbarBlue(){$("body").css({'background-color':'#658ea4','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/redbarblue.png)'});}
function themeLiteBlue(){$("body").css({'background-color':'#b6e2fd','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/liteblue.png)'});}
function themeTeal(){$("body").css({'background-color':'#0e3b40','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/teal.png)'});}
function themePinky(){$("body").css({'background-color':'#93767a','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/pinky.png)'});}
function themeGrey(){$("body").css({'background-color':'#7d7e7d','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/grey.png)'});}
function themeBlueFade(){$("body").css({'background-color':'#fbf5f5','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/bluefade.png)'});}
function themeDarkGreen(){$("body").css({'background-color':'#96c66f','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/darkgreen.png)'});}
function themeCobalt(){$("body").css({'background-color':'#293239','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/cobalt.png)'});}
function themeLavendar(){$("body").css({'background-color':'#7f78b3','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/lavendar.png)'});}
function themeBlueGrey(){$("body").css({'background-color':'#aeb6bb','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/bluegrey.png)'});}
function themeBumble(){$("body").css({'background-color':'#fff203','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/bumble.png)'});}
function themeCranberry(){$("body").css({'background-color':'#661010','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/cranberry.png)'});}
function themeBlackSea(){$("body").css({'background-color':'#6effff','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/blacksea.png)'});}
function themeBubbleGum(){$("body").css({'background-color':'#ffc2dc','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/bubblegum.png)'});}
function themeDeepRose(){$("body").css({'background-color':'#fbf5f5','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/deeprose.png)'});}
function themeBaby(){$("body").css({'background-color':'#ffb9bf','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/baby.png)'});}
function themeAmethyst(){$("body").css({'background-color':'#8d43cf','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/amethyst.png)'});}
function themeRubySlippers(){$("body").css({'background-color':'#ff0000','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/rubyslippers.png)'});}
function themeChocko(){$("body").css({'background-color':'#360904','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/skins/chocko.png)'});}
function themeURsTV(){$("body").css({'background-color':'#ffffff','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/background.png)','background-position':'top left','background-repeat':'repeat-x'});$("#logo").css({'background-color':'transparent','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/logo.png)','background-position':'0 0','background-repeat':'no-repeat','width':'165px','height':'96px'});$("#followus").css({'color':'#ffffff'});}
function themeChristmas(){$("body").css({'background-color':'#01601C','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/Christmas/bg.png)','background-position':'top left','background-repeat':'repeat-x'});$("#logo").css({'background-color':'transparent','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/Christmas/logo.png)','background-position':'0 0','background-repeat':'no-repeat','width':'165px','height':'96px'});$("#followus").css({'color':'#ffffff'});}
function themeEaster(){$("body").css({'background-color':'#FEF23C','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/Easter/bg.png)','background-position':'top left','background-repeat':'repeat-x'});$("#logo").css({'background-color':'transparent','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/Easter/logo.png)','background-position':'0 0','background-repeat':'no-repeat','width':'165px','height':'96px'});$("#followus").css({'color':'#ffffff'});}
function themeGuyFawkes(){$("body").css({'background-color':'#5f1e0c','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/guy/bg.png)','background-position':'top left','background-repeat':'repeat-x'});$("#logo").css({'background-color':'transparent','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/guy/logo.png)','background-position':'0 0','background-repeat':'no-repeat','width':'165px','height':'96px'});$("#followus").css({'color':'#ffffff'});}
function themeHalloween(){$("body").css({'background-color':'#fe7c00','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/halloween/bg.png)','background-position':'top left','background-repeat':'repeat-x'});$("#logo").css({'background-color':'transparent','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/halloween/logo.png)','background-position':'0 0','background-repeat':'no-repeat','width':'165px','height':'96px'});$("#followus").css({'color':'#ffffff'});}
function themeNewYear(){$("body").css({'background-color':'#790505','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/NewYear/bg.png)','background-position':'top left','background-repeat':'repeat-x'});$("#logo").css({'background-color':'transparent','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/NewYear/logo.png)','background-position':'0 0','background-repeat':'no-repeat','width':'165px','height':'96px'});$("#followus").css({'color':'#ffffff'});}
function themeValentines(){$("body").css({'background-color':'#E30B9C','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/Valentines/bg.png)','background-position':'top left','background-repeat':'repeat-x'});$("#logo").css({'background-color':'transparent','background-image':'url(http://urstv.com/wp-content/themes/URsTV-twilight/img/twilight/Valentines/logo.png)','background-position':'0 0','background-repeat':'no-repeat','width':'165px','height':'96px'});$("#followus").css({'color':'#ffffff'});}
function getCookie(c_name)
{if(document.cookie.length>0)
{c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1)
{c_start=c_start+ c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}
return"";}
function setCookie(c_name,value,expiredays)
{var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+"="+escape(value)+
((expiredays==null)?"":";expires="+exdate.toGMTString())+";domain=.urstv.com";}
function delCookie(c_name){setCookie(c_name,"",-1);}
