// JavaScript Document
//var MSIE = 0/*@cc_on+@_jscript_version*10%10@*/;
//if (MSIE && MSIE < 7)
//{
//document.write("");
//}else{
//document.write("");
//}
function suka(item) {
var pussy = item.id;
var vot = 'photo';
if (document.getElementById('adress')) vot = document.getElementById('adress').className;
document.getElementById('smotr').innerHTML = "
Закрыть

";
document.getElementById('whore').className = "viewer";
if (document.getElementById('video')) document.getElementById('video').style.visibility = "hidden";
if (document.getElementById('video_1')) document.getElementById('video_1').style.visibility = "hidden";
if (document.getElementById('video_2')) document.getElementById('video_2').style.visibility = "hidden";
if (document.getElementById('video_3')) document.getElementById('video_3').style.visibility = "hidden";
if (document.getElementById('video_4')) document.getElementById('video_4').style.visibility = "hidden";
if (document.getElementById('video_5')) document.getElementById('video_5').style.visibility = "hidden";
if (document.getElementById('myAlternativeContent')) document.getElementById('myAlternativeContent').style.visibility = "hidden";
}
function pisun() {
document.getElementById('smotr').innerHTML = "";
document.getElementById('whore').className = "view";
if (document.getElementById('video')) document.getElementById('video').style.visibility = "visible";
if (document.getElementById('video_1')) document.getElementById('video_1').style.visibility = "visible";
if (document.getElementById('video_2')) document.getElementById('video_2').style.visibility = "visible";
if (document.getElementById('video_3')) document.getElementById('video_3').style.visibility = "visible";
if (document.getElementById('video_4')) document.getElementById('video_4').style.visibility = "visible";
if (document.getElementById('video_5')) document.getElementById('video_5').style.visibility = "visible";
if (document.getElementById('myAlternativeContent')) document.getElementById('myAlternativeContent').style.visibility = "visible";
}
function ebet(item) {
document.getElementById('picture').innerHTML = "";
i = 0; while (i < 1) { i++;
document.getElementById(i).className = "shadow_pre"; document.getElementById(i).align = "left"; continue }
item.className = "shadow_pre_click";
item.align = "justify";
document.getElementById('whore').className = "view";
}
function pic_on(item)
{ item.id = "pic_on";}
function pic_off(item)
{ item.id = "pic";}
function small_on(item)
{ item.className = "small_on";}
function small_off(item)
{ item.className = "small";}
function bar_on(item)
{ item.className = "shadow_pre_on";}
function bar_off(item)
{ if (item.align == "justify") { item.className = "shadow_pre_click"; }
else
{item.className = "shadow_pre"; item.align = "left"}}
function style_on(item)
{ item.style.background = "#CCCCCC";
item.style.cursor = "pointer";
item.style.opacity = "";
item.style.filter='alpha(opacity=100)'}
function style_off(item)
{ item.style.background = "";
item.style.opacity = "0.85";
item.style.filter='alpha(opacity=85)'}
function style_con(item)
{ item.style.background = "";}
function red(item)
{ item.style.color = "#ff0000";
item.style.textDecoration = "none";}
function blue(item)
{ item.style.color = "#000066";
item.style.textDecoration = "underline";}
function oner(item)
{ item.style.padding = "0px";
item.style.paddingBottom = "2px";
item.style.paddingRight = "2px";}
function offer(item)
{ item.style.padding = "1px";}
function up(item)
{ item.style.margin = "0px";
item.style.paddingBottom = "1px";
item.style.paddingRight = "1px";}
function down(item)
{ item.style.margin = "1px";
item.style.padding = "0px";}
function on(theID) {
var a="http://showone.ru/_img/"+theID+"_on.png";
document.getElementById(theID).src=a;
}
function off(theID) {
var b="http://showone.ru/_img/"+theID+".png";
document.getElementById(theID).src=b;
}
function click(theID) {
var d="http://showone.ru/_img/"+theID+"_click.png";
document.getElementById(theID).src=d}
function sub(theID) {
if (document.getElementById(theID).style.display == "none") {
document.getElementById(theID).style.display = "block";}
else {
document.getElementById(theID).style.display = "none"; }}
function imager() {
var im = Math.floor(Math.random() * 6);
var cat = Math.floor(Math.random() * 2);
var e="http://showone.ru/galery/"+cat+"/pic"+im+".png";
var path="http://showone.ru/galery/"+cat+"/";
document.getElementById('heres').href=path;
document.getElementById('image').src=e;
var timer=setTimeout("imager()",4000)}
function limiter() {
var bodys = document.body.clientWidth;
var cont;
if (bodys < 1000) {cont = 530} else{ cont = bodys - 470}
var send = ""+cont+"px";
document.getElementById('content').style.width = send;
}