safari = (navigator.userAgent.indexOf('Safari') != -1);

function loadMap(city, map) {
	top.frames['viewer'].document.location.href = "newsite/media/fotos/city_tours/"+city+"/"+map;
}

/*
function setSubMenu(m) {
	var sm, smId;
	//alert(m);
	switch (m) {
		case 11:
			//smId = "sd"+m;
			//alert(smId);
			sm = document.getElementById('sd11');
			sm.className='viewSD';
			break;
		case 12:
			sm = document.getElementById('sd12');
			//alert(sm);
			sm.className='viewSD';
			break;
		case 20:
			sm = document.getElementById('ct20');
			//alert(sm);
			sm.className='navlistv';
			break;
	}
}

function chgClassAttrib(class,attrib,value) {
	var sm, smId;
}
*/
//Custom JavaScript Functions by Shawn Olson
//Copyright 2006
//http://www.shawnolson.net
//If you copy any functions from this page into your scripts, you must provide credit to Shawn Olson & http://www.shawnolson.net
//This file may not be used on adult sites
//or any site that incites hate
//or sites that are not child-friendly
//*******************************************
/*
function changecss(theClass,element,value) {
	//documentation for this script at http://www.shawnolson.net/a/503/
	//alert("changess");
	var cssRules;
	if (document.all) {
		cssRules = 'rules';
	}
	else if (document.getElementById) {
		alert("getElementById");
		cssRules = 'cssRules';
	}
	for (var S = 0; S < document.styleSheets.length; S++){
		for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) {
	  	if (document.styleSheets[S][cssRules][R].selectorText == theClass) {
	    	document.styleSheets[S][cssRules][R].style[element] = value;
	   	}
	  }
	}	
}
*/
/* 
  ================================================
  PVII Uberlink Script
  Copyright (c) 2006 Project Seven Development
  www.projectseven.com
  Version: 1.0.0
  ================================================
*/
/*
urls = new Array("sd.php?m=11","sd.php?m=12","sd.php?m=2","sd.php?m=3","sd.php?m=4");
function P7_Uberlink(cl,d) {
	var i,ob,tA,h=document.location.href;
	//alert(cl+','+d+','+h);
	if(document.getElementById){
	ob=(d)?document.getElementById(d):document;
	if(ob){
	tA=ob.getElementsByTagName('A');
	for(i=0;i<tA.length;i++){
	if(tA[i].href==h){
	tA[i].className=cl;
}}}}}

function getValue() {
	var x=document.getElementById("sdir")
	alert(x.innerHTML)
}
*/