
///////////////////////////////////	  
//Modifica lo stato della STATUS BAR 
///////////////////////////////////
	  {
defaultStatus = "COSEDIMARCO© Website :: Wooden art - Ver. 5.0.5";
}
///////////////////////////////////
//Disable select-text script (IE4+, NS6+)- By Andy Scott
///////////////////////////////////
function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
///////////////////////////////////
//Disable right click script III- By Renigade (renigade@mediaone.net)
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")

///////////////////////////////////
// Caricamento del foro
///////////////////////////////////
<!--
var spacer=("http://www.cosedimarco.com/images/base/spacer-sx.jpg");
var copy=("http://www.cosedimarco.com/images/base/copyright.jpg");
    var fo = 10;     // Number of alternative images
    var foro = new Array(fo);  // Array to hold filenames
        
foro[0] = "http://www.cosedimarco.com/images/base/random/foro1.jpg";
foro[1] = "http://www.cosedimarco.com/images/base/random/foro2.jpg";
foro[2] = "http://www.cosedimarco.com/images/base/random/foro3.jpg";
foro[3] = "http://www.cosedimarco.com/images/base/random/foro4.jpg";
foro[4] = "http://www.cosedimarco.com/images/base/random/foro5.jpg";
foro[5] = "http://www.cosedimarco.com/images/base/random/foro6.jpg";
foro[6] = "http://www.cosedimarco.com/images/base/random/foro7.jpg";
foro[7] = "http://www.cosedimarco.com/images/base/random/foro8.jpg";
foro[8] = "http://www.cosedimarco.com/images/base/random/foro9.jpg";
foro[9] = "http://www.cosedimarco.com/images/base/random/foro10.jpg";

    var ri = 9;     // Number of alternative images
    var righello = new Array(ri);  // Array to hold filenames
        
righello[0] = "http://www.cosedimarco.com/images/base/random/righello1.jpg";
righello[1] = "http://www.cosedimarco.com/images/base/random/righello2.jpg";
righello[2] = "http://www.cosedimarco.com/images/base/random/righello3.jpg";
righello[3] = "http://www.cosedimarco.com/images/base/random/righello4.jpg";
righello[4] = "http://www.cosedimarco.com/images/base/random/righello5.jpg";
righello[5] = "http://www.cosedimarco.com/images/base/random/righello6.jpg";
righello[6] = "http://www.cosedimarco.com/images/base/random/righello7.jpg";
righello[7] = "http://www.cosedimarco.com/images/base/random/righello8.jpg";
righello[8] = "http://www.cosedimarco.com/images/base/random/righello9.jpg";

    var it = 8;     // Number of alternative images
    var intro = new Array(it);  // Array to hold filenames
        
intro[0] = "http://www.cosedimarco.com/images/intro/intro1.jpg";
intro[1] = "http://www.cosedimarco.com/images/intro/intro2.jpg";
intro[2] = "http://www.cosedimarco.com/images/intro/intro3.jpg";
intro[3] = "http://www.cosedimarco.com/images/intro/intro4.jpg";
intro[4] = "http://www.cosedimarco.com/images/intro/intro5.jpg";
intro[5] = "http://www.cosedimarco.com/images/intro/intro6.jpg";
intro[6] = "http://www.cosedimarco.com/images/intro/intro7.jpg";
intro[7] = "http://www.cosedimarco.com/images/intro/intro8.jpg";
function pickRandom(range) {
if (Math.random)
return Math.round(Math.random() * (range-1));
else {
var now = new Date();
return (now.getTime() / 1000) % range;
}
}
// Write out an IMG tag, using a randomly-chosen image name.
var hole = pickRandom(fo);
var riga = pickRandom(ri);
var hole1 = pickRandom(fo);
var introimg = pickRandom(it);
// -->
/////////////////////////////////////////////////////
//Style Sheet Switcher version 1.0 Nov 9th, 2005
//Author: Dynamic Drive: http://www.dynamicdrive.com
//Usage terms: http://www.dynamicdrive.com/notice.htm
/////////////////////////////////////////////////////

function getCookie(Name) { 
var re=new RegExp(Name+"=[^;]+", "i"); //construct RE to search for target name/value pair
if (document.cookie.match(re)) //if cookie found
return document.cookie.match(re)[0].split("=")[1] //return its value
return null
}

function setCookie(name, value, days) {
var expireDate = new Date()
//set "expstring" to either future or past date, to set or delete cookie, respectively
var expstring=(typeof days!="undefined")? expireDate.setDate(expireDate.getDate()+parseInt(days)) : expireDate.setDate(expireDate.getDate()-5)
document.cookie = name+"="+value+"; expires="+expireDate.toGMTString()+"; path=/";
}

function deleteCookie(name){
setCookie(name, "moot")
}

function setStylesheet(title) {
var i, cacheobj
for(i=0; (cacheobj=document.getElementsByTagName("link")[i]); i++) {
if(cacheobj.getAttribute("rel").indexOf("style") != -1 && cacheobj.getAttribute("title")) {
cacheobj.disabled = true
if(cacheobj.getAttribute("title") == title)
cacheobj.disabled = false //enable chosen style sheet
}
}
}

function chooseStyle(styletitle, days){
if (document.getElementById){
setStylesheet(styletitle)
setCookie("mysheet", styletitle, days)
}
}

function indicateSelected(element){ //Optional function that shows which style sheet is currently selected within group of radio buttons or select menu 
var i
if (selectedtitle!=null && (element.type==undefined || element.type=="select-one")){ //if element is a radio button or select menu
var element=(element.type=="select-one") ? element.options : element
for (i=0; i<element.length; i++){
if (element[i].value==selectedtitle){ //if match found between form element value and cookie value
if (element[i].tagName=="OPTION") //if this is a select menu
element[i].selected=true
else //else if it's a radio button
element[i].checked=true
break
}
}
}
}

var selectedtitle=getCookie("mysheet")
if (document.getElementById && selectedtitle!=null) //load user chosen style sheet if there is one stored
setStylesheet(selectedtitle)

